Definition at line 12 of file ComponentEntryTest.php.
◆ setUp()
ComponentEntryTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 24 of file ComponentEntryTest.php.
26 $this->entry_data = include
"tests/UI/Crawler/Fixture/EntryFixture.php";
27 $this->entry =
new Entry($this->entry_data);
◆ testChildren()
ComponentEntryTest::testChildren |
( |
| ) |
|
Definition at line 143 of file ComponentEntryTest.php.
145 $this->assertEquals($this->entry_data[
"children"], $this->entry->getChildren());
146 $this->entry->setChildren([]);
147 $this->assertEquals([], $this->entry->getChildren());
148 $this->entry->addChildren(
154 $this->assertEquals([
'Child1',
'Child2'], $this->entry->getChildren());
155 $this->entry->addChild(
'Child3');
156 $this->assertEquals([
'Child1',
'Child2',
'Child3'], $this->entry->getChildren());
◆ testConstruct()
ComponentEntryTest::testConstruct |
( |
| ) |
|
◆ testContext()
ComponentEntryTest::testContext |
( |
| ) |
|
Definition at line 91 of file ComponentEntryTest.php.
93 $this->assertEquals($this->entry_data[
"context"], $this->entry->getContext());
94 $this->entry->setContext([]);
95 $this->assertEquals([], $this->entry->getContext());
◆ testExamples()
ComponentEntryTest::testExamples |
( |
| ) |
|
Definition at line 161 of file ComponentEntryTest.php.
163 $this->assertEquals(
'src/UI/Factory/Entry1Title', $this->entry->getExamplesPath());
◆ testFeatureWikiReferences()
ComponentEntryTest::testFeatureWikiReferences |
( |
| ) |
|
Definition at line 98 of file ComponentEntryTest.php.
100 $this->assertEquals($this->entry_data[
"feature_wiki_references"], $this->entry->getFeatureWikiReferences());
101 $this->entry->setFeatureWikiReferences([]);
102 $this->assertEquals([], $this->entry->getFeatureWikiReferences());
◆ testGetId()
ComponentEntryTest::testGetId |
( |
| ) |
|
Definition at line 36 of file ComponentEntryTest.php.
38 $this->assertEquals($this->entry_data[
"id"], $this->entry->getId());
39 $this->entry->setId(
"newId");
40 $this->assertEquals(
"newId", $this->entry->getId());
◆ testGetTitle()
ComponentEntryTest::testGetTitle |
( |
| ) |
|
Definition at line 43 of file ComponentEntryTest.php.
45 $this->assertEquals($this->entry_data[
"title"], $this->entry->getTitle());
46 $this->entry->setTitle(
"newTitle");
47 $this->assertEquals(
"newTitle", $this->entry->getTitle());
◆ testIsAbstract()
ComponentEntryTest::testIsAbstract |
( |
| ) |
|
Definition at line 50 of file ComponentEntryTest.php.
52 $this->assertEquals($this->entry_data[
"abstract"], $this->entry->isAbstract());
53 $this->entry->setIsAbstract(
false);
54 $this->assertEquals(
false, $this->entry->isAbstract());
◆ testJsonSerialize()
ComponentEntryTest::testJsonSerialize |
( |
| ) |
|
Definition at line 167 of file ComponentEntryTest.php.
169 $this->assertEquals(include
"tests/UI/Crawler/Fixture/EntryFixture.php", $this->entry->jsonSerialize());
◆ testLessVariables()
ComponentEntryTest::testLessVariables |
( |
| ) |
|
Definition at line 120 of file ComponentEntryTest.php.
122 $this->assertEquals($this->entry_data[
"less_variables"], $this->entry->getLessVariables());
123 $this->entry->setLessVariables([]);
124 $this->assertEquals([], $this->entry->getLessVariables());
◆ testParent()
ComponentEntryTest::testParent |
( |
| ) |
|
Definition at line 134 of file ComponentEntryTest.php.
136 $this->assertEquals($this->entry_data[
"parent"], $this->entry->getParent());
137 $this->entry->setParent(
"test");
138 $this->assertEquals(
"test", $this->entry->getParent());
139 $this->entry->setParent(
false);
140 $this->assertEquals(
false, $this->entry->getParent());
◆ testPath()
ComponentEntryTest::testPath |
( |
| ) |
|
Definition at line 127 of file ComponentEntryTest.php.
129 $this->assertEquals($this->entry_data[
"path"], $this->entry->getPath());
130 $this->entry->setPath(
"");
131 $this->assertEquals(
"", $this->entry->getPath());
◆ testRules()
ComponentEntryTest::testRules |
( |
| ) |
|
Definition at line 105 of file ComponentEntryTest.php.
107 $this->assertEquals(
new Rules($this->entry_data[
"rules"]), $this->entry->getRules());
108 $this->assertEquals($this->entry_data[
"rules"], $this->entry->getRulesAsArray());
109 $this->entry->setRules(
new Rules([]));
110 $this->assertEquals(
new Rules([]), $this->entry->getRules());
◆ testSelector()
ComponentEntryTest::testSelector |
( |
| ) |
|
Definition at line 113 of file ComponentEntryTest.php.
115 $this->assertEquals($this->entry_data[
"selector"], $this->entry->getSelector());
116 $this->entry->setSelector(
"otherSelector");
117 $this->assertEquals(
"otherSelector", $this->entry->getSelector());
◆ testSetBackground()
ComponentEntryTest::testSetBackground |
( |
| ) |
|
Definition at line 84 of file ComponentEntryTest.php.
86 $this->assertEquals($this->entry_data[
"background"], $this->entry->getBackground());
87 $this->entry->setBackground(
"someBackground");
88 $this->assertEquals(
"someBackground", $this->entry->getBackground());
◆ testSetDescription()
ComponentEntryTest::testSetDescription |
( |
| ) |
|
Definition at line 71 of file ComponentEntryTest.php.
73 $this->assertEquals(
new Description($this->entry_data[
"description"]), $this->entry->getDescription());
74 $this->assertEquals($this->entry_data[
"description"], $this->entry->getDescriptionAsArray());
75 $this->entry->setDescription(
new Description([]));
76 $this->assertEquals(
new Description([]), $this->entry->getDescription());
77 $this->assertEquals(array(
81 'rivals' => array()), $this->entry->getDescriptionAsArray());
◆ testStatusEntry()
ComponentEntryTest::testStatusEntry |
( |
| ) |
|
Definition at line 57 of file ComponentEntryTest.php.
59 $this->assertEquals($this->entry_data[
"status_entry"], $this->entry->getStatusEntry());
60 $this->entry->setStatusEntry(
"someStatus");
61 $this->assertEquals(
"someStatus", $this->entry->getStatusEntry());
◆ testStatusImplementation()
ComponentEntryTest::testStatusImplementation |
( |
| ) |
|
Definition at line 64 of file ComponentEntryTest.php.
66 $this->assertEquals($this->entry_data[
"status_implementation"], $this->entry->getStatusImplementation());
67 $this->entry->setStatusImplementation(
"someStatus");
68 $this->assertEquals(
"someStatus", $this->entry->getStatusImplementation());
◆ $entry
ComponentEntryTest::$entry |
|
protected |
◆ $entry_data
ComponentEntryTest::$entry_data |
|
protected |
The documentation for this class was generated from the following file: