public function testGetTitleFromUrl()
 {
     $url = 'https://kanboard.net/folder/document.pdf';
     $link = new AttachmentLink($this->container);
     $link->setUrl($url);
     $this->assertEquals($url, $link->getUrl());
     $this->assertEquals('document.pdf', $link->getTitle());
 }
 /**
  * Get the link found with the properties
  *
  * @access public
  * @return ExternalLinkInterface
  */
 public function getLink()
 {
     $link = new AttachmentLink($this->container);
     $link->setUrl($this->userInput);
     return $link;
 }