예제 #1
0
 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());
 }
예제 #2
0
 /**
  * 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;
 }