Tests the Link Datatype.
More...
Tests the Link Datatype.
Definition at line 27 of file LinkTest.php.
◆ setUp()
Definition at line 33 of file LinkTest.php.
33 : void
34 {
36 $this->label = 'ILIAS Homepage';
37 $this->url = $this->f->uri('https://www.ilias.de');
38 }
◆ testFactory()
DataLinkTest::testFactory |
( |
| ) |
|
Definition at line 40 of file LinkTest.php.
41 {
42 $link = $this->f->link($this->label, $this->url);
43 $this->assertInstanceOf(Link::class, $link);
44 return $link;
45 }
A Link is the often used combination of a label and an URL.
◆ testValues()
DataLinkTest::testValues |
( |
Link |
$link | ) |
|
Definition at line 48 of file LinkTest.php.
48 : void
49 {
50 $this->assertEquals(
51 $this->label,
53 );
54 $this->assertEquals(
55 $this->url,
56 $link->getUrl()
57 );
58 }
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: