Definition at line 29 of file ComponentEntryTest.php.
◆ setUp()
ComponentEntryTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 34 of file ComponentEntryTest.php.
36 $this->entry_data = include
"components/ILIAS/UI/tests/Crawler/Fixture/EntryFixture.php";
37 $this->entry =
new Entry($this->entry_data);
◆ testChildren()
ComponentEntryTest::testChildren |
( |
| ) |
|
Definition at line 151 of file ComponentEntryTest.php.
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());
◆ testConstruct()
ComponentEntryTest::testConstruct |
( |
| ) |
|
◆ testContext()
ComponentEntryTest::testContext |
( |
| ) |
|
Definition at line 101 of file ComponentEntryTest.php.
103 $this->assertEquals($this->entry_data[
"context"], $this->entry->getContext());
104 $this->entry->setContext([]);
105 $this->assertEquals([], $this->entry->getContext());
◆ testExamplePath()
ComponentEntryTest::testExamplePath |
( |
| ) |
|
Definition at line 167 of file ComponentEntryTest.php.
169 $this->assertEquals(
'components/ILIAS/UI/src/examples/Entry1Title', $this->entry->getExamplesPath());
◆ testExamplesNull()
ComponentEntryTest::testExamplesNull |
( |
| ) |
|
◆ testFeatureWikiReferences()
ComponentEntryTest::testFeatureWikiReferences |
( |
| ) |
|
Definition at line 108 of file ComponentEntryTest.php.
110 $this->assertEquals($this->entry_data[
"feature_wiki_references"], $this->entry->getFeatureWikiReferences());
111 $this->entry->setFeatureWikiReferences([]);
112 $this->assertEquals([], $this->entry->getFeatureWikiReferences());
◆ testGetId()
ComponentEntryTest::testGetId |
( |
| ) |
|
Definition at line 46 of file ComponentEntryTest.php.
48 $this->assertEquals($this->entry_data[
"id"], $this->entry->getId());
49 $this->entry->setId(
"newId");
50 $this->assertEquals(
"newId", $this->entry->getId());
◆ testGetTitle()
ComponentEntryTest::testGetTitle |
( |
| ) |
|
Definition at line 53 of file ComponentEntryTest.php.
55 $this->assertEquals($this->entry_data[
"title"], $this->entry->getTitle());
56 $this->entry->setTitle(
"newTitle");
57 $this->assertEquals(
"newTitle", $this->entry->getTitle());
◆ testIsAbstract()
ComponentEntryTest::testIsAbstract |
( |
| ) |
|
Definition at line 60 of file ComponentEntryTest.php.
62 $this->assertEquals($this->entry_data[
"abstract"], $this->entry->isAbstract());
63 $this->entry->setIsAbstract(
false);
64 $this->assertEquals(
false, $this->entry->isAbstract());
◆ testJsonSerialize()
ComponentEntryTest::testJsonSerialize |
( |
| ) |
|
Definition at line 177 of file ComponentEntryTest.php.
179 $this->assertEquals(include
"components/ILIAS/UI/tests/Crawler/Fixture/EntryFixture.php", $this->entry->jsonSerialize());
◆ testLessVariables()
ComponentEntryTest::testLessVariables |
( |
| ) |
|
Definition at line 130 of file ComponentEntryTest.php.
132 $this->assertEquals($this->entry_data[
"less_variables"], $this->entry->getLessVariables());
133 $this->entry->setLessVariables([]);
134 $this->assertEquals([], $this->entry->getLessVariables());
◆ testNamespace()
ComponentEntryTest::testNamespace |
( |
| ) |
|
Definition at line 182 of file ComponentEntryTest.php.
184 $this->assertEquals($this->entry_data[
"namespace"], $this->entry->getNamespace());
185 $this->entry->setNamespace(
"");
186 $this->assertEquals(
"", $this->entry->getNamespace());
◆ testParent()
ComponentEntryTest::testParent |
( |
| ) |
|
Definition at line 144 of file ComponentEntryTest.php.
146 $this->assertEquals($this->entry_data[
"parent"], $this->entry->getParent());
147 $this->entry->setParent(
"test");
148 $this->assertEquals(
"test", $this->entry->getParent());
◆ testPath()
ComponentEntryTest::testPath |
( |
| ) |
|
Definition at line 137 of file ComponentEntryTest.php.
139 $this->assertEquals($this->entry_data[
"path"], $this->entry->getPath());
140 $this->entry->setPath(
"");
141 $this->assertEquals(
"", $this->entry->getPath());
◆ testRules()
ComponentEntryTest::testRules |
( |
| ) |
|
Definition at line 115 of file ComponentEntryTest.php.
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());
◆ testSelector()
ComponentEntryTest::testSelector |
( |
| ) |
|
Definition at line 123 of file ComponentEntryTest.php.
125 $this->assertEquals($this->entry_data[
"selector"], $this->entry->getSelector());
126 $this->entry->setSelector(
"otherSelector");
127 $this->assertEquals(
"otherSelector", $this->entry->getSelector());
◆ testSetBackground()
ComponentEntryTest::testSetBackground |
( |
| ) |
|
Definition at line 94 of file ComponentEntryTest.php.
96 $this->assertEquals($this->entry_data[
"background"], $this->entry->getBackground());
97 $this->entry->setBackground(
"someBackground");
98 $this->assertEquals(
"someBackground", $this->entry->getBackground());
◆ testSetDescription()
ComponentEntryTest::testSetDescription |
( |
| ) |
|
Definition at line 81 of file ComponentEntryTest.php.
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());
◆ testStatusEntry()
ComponentEntryTest::testStatusEntry |
( |
| ) |
|
Definition at line 67 of file ComponentEntryTest.php.
69 $this->assertEquals($this->entry_data[
"status_entry"], $this->entry->getStatusEntry());
70 $this->entry->setStatusEntry(
"someStatus");
71 $this->assertEquals(
"someStatus", $this->entry->getStatusEntry());
◆ testStatusImplementation()
ComponentEntryTest::testStatusImplementation |
( |
| ) |
|
Definition at line 74 of file ComponentEntryTest.php.
76 $this->assertEquals($this->entry_data[
"status_implementation"], $this->entry->getStatusImplementation());
77 $this->entry->setStatusImplementation(
"someStatus");
78 $this->assertEquals(
"someStatus", $this->entry->getStatusImplementation());
◆ $entry
Entry ComponentEntryTest::$entry |
|
protected |
◆ $entry_data
array ComponentEntryTest::$entry_data |
|
protected |
The documentation for this class was generated from the following file: