19 declare(strict_types=1);
    21 require_once(
"vendor/composer/vendor/autoload.php");
    34     protected function setUp(): void
    36         $this->entry_data = include 
"components/ILIAS/UI/tests/Crawler/Fixture/EntryFixture.php";
    37         $this->entry = 
new Entry($this->entry_data);
    43         $this->assertInstanceOf(Entry::class, $this->entry);
    48         $this->assertEquals($this->entry_data[
"id"], $this->entry->getId());
    49         $this->entry->setId(
"newId");
    50         $this->assertEquals(
"newId", $this->entry->getId());
    55         $this->assertEquals($this->entry_data[
"title"], $this->entry->getTitle());
    56         $this->entry->setTitle(
"newTitle");
    57         $this->assertEquals(
"newTitle", $this->entry->getTitle());
    62         $this->assertEquals($this->entry_data[
"abstract"], $this->entry->isAbstract());
    63         $this->entry->setIsAbstract(
false);
    64         $this->assertEquals(
false, $this->entry->isAbstract());
    69         $this->assertEquals($this->entry_data[
"status_entry"], $this->entry->getStatusEntry());
    70         $this->entry->setStatusEntry(
"someStatus");
    71         $this->assertEquals(
"someStatus", $this->entry->getStatusEntry());
    76         $this->assertEquals($this->entry_data[
"status_implementation"], $this->entry->getStatusImplementation());
    77         $this->entry->setStatusImplementation(
"someStatus");
    78         $this->assertEquals(
"someStatus", $this->entry->getStatusImplementation());
    83         $this->assertEquals(
new Description($this->entry_data[
"description"]), $this->entry->getDescription());
    84         $this->assertEquals($this->entry_data[
"description"], $this->entry->getDescriptionAsArray());
    85         $this->entry->setDescription(
new Description([]));
    86         $this->assertEquals(
new Description([]), $this->entry->getDescription());
    87         $this->assertEquals(array(
    91             'rivals' => array()), $this->entry->getDescriptionAsArray());
    96         $this->assertEquals($this->entry_data[
"background"], $this->entry->getBackground());
    97         $this->entry->setBackground(
"someBackground");
    98         $this->assertEquals(
"someBackground", $this->entry->getBackground());
   103         $this->assertEquals($this->entry_data[
"context"], $this->entry->getContext());
   104         $this->entry->setContext([]);
   105         $this->assertEquals([], $this->entry->getContext());
   110         $this->assertEquals($this->entry_data[
"feature_wiki_references"], $this->entry->getFeatureWikiReferences());
   111         $this->entry->setFeatureWikiReferences([]);
   112         $this->assertEquals([], $this->entry->getFeatureWikiReferences());
   117         $this->assertEquals(
new Rules($this->entry_data[
"rules"]), $this->entry->getRules());
   118         $this->assertEquals($this->entry_data[
"rules"], $this->entry->getRulesAsArray());
   119         $this->entry->setRules(
new Rules([]));
   120         $this->assertEquals(
new Rules([]), $this->entry->getRules());
   125         $this->assertEquals($this->entry_data[
"selector"], $this->entry->getSelector());
   126         $this->entry->setSelector(
"otherSelector");
   127         $this->assertEquals(
"otherSelector", $this->entry->getSelector());
   132         $this->assertEquals($this->entry_data[
"less_variables"], $this->entry->getLessVariables());
   133         $this->entry->setLessVariables([]);
   134         $this->assertEquals([], $this->entry->getLessVariables());
   139         $this->assertEquals($this->entry_data[
"path"], $this->entry->getPath());
   140         $this->entry->setPath(
"");
   141         $this->assertEquals(
"", $this->entry->getPath());
   146         $this->assertEquals($this->entry_data[
"parent"], $this->entry->getParent());
   147         $this->entry->setParent(
"test");
   148         $this->assertEquals(
"test", $this->entry->getParent());
   153         $this->assertEquals($this->entry_data[
"children"], $this->entry->getChildren());
   154         $this->entry->setChildren([]);
   155         $this->assertEquals([], $this->entry->getChildren());
   156         $this->entry->addChildren(
   162         $this->assertEquals([
'Child1',
'Child2'], $this->entry->getChildren());
   163         $this->entry->addChild(
'Child3');
   164         $this->assertEquals([
'Child1',
'Child2',
'Child3'], $this->entry->getChildren());
   169         $this->assertEquals(
'components/ILIAS/UI/src/examples/Entry1Title', $this->entry->getExamplesPath());
   174         $this->assertEquals([], $this->entry->getExamples());
   179         $this->assertEquals(include 
"components/ILIAS/UI/tests/Crawler/Fixture/EntryFixture.php", $this->entry->jsonSerialize());
   184         $this->assertEquals($this->entry_data[
"namespace"], $this->entry->getNamespace());
   185         $this->entry->setNamespace(
"");
   186         $this->assertEquals(
"", $this->entry->getNamespace());
 
Container to hold rules of UI Components. 
 
testStatusImplementation()
 
testFeatureWikiReferences()
 
Container to hold description of UI Components.