Tests the Link Datatype.  
 More...
Tests the Link Datatype. 
Definition at line 11 of file LinkTest.php.
 
◆ setUp()
Definition at line 17 of file LinkTest.php.
   17                              : void
   18    {
   20        $this->label = 'ILIAS Homepage';
   21        $this->url = $this->f->uri('https://www.ilias.de');
   22    }
 
 
 
◆ testFactory()
      
        
          | DataLinkTest::testFactory  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 24 of file LinkTest.php.
   25    {
   26        $link = $this->f->link($this->label, $this->url);
   27        $this->assertInstanceOf(Link::class, $link);
   28        return $link;
   29    }
A Link is the often used combination of a label and an URL.
 
 
 
 
◆ testValues()
      
        
          | DataLinkTest::testValues  | 
          ( | 
          Link  | 
          $link | ) | 
           | 
        
      
 
@depends testFactory 
Definition at line 34 of file LinkTest.php.
   34                                          : void
   35    {
   36        $this->assertEquals(
   37            $this->label,
   39        );
   40        $this->assertEquals(
   41            $this->url,
   42            $link->getUrl()
   43        );
   44    }
 
References ILIAS\Data\Link\getLabel().
 
 
◆ $f
  
  
      
        
          | ILIAS Data Factory DataLinkTest::$f | 
         
       
   | 
  
private   | 
  
 
 
◆ $label
  
  
      
        
          | string DataLinkTest::$label | 
         
       
   | 
  
private   | 
  
 
 
◆ $url
  
  
      
        
          | ILIAS Data URI DataLinkTest::$url | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: