Definition at line 13 of file LSControlBuilderTest.php.
◆ setUp()
LSControlBuilderTest::setUp |
( |
| ) |
|
Definition at line 17 of file LSControlBuilderTest.php.
References $lang.
19 $ui_factory = $this->mockUIFactory();
20 $lang = $this->mockIlLanguage();
23 $uri = $data_factory->uri(
'http://ilias.de/somepath');
Global Settings of the Learning Sequence.
◆ testConstruction()
LSControlBuilderTest::testConstruction |
( |
| ) |
|
Definition at line 30 of file LSControlBuilderTest.php.
32 $this->assertInstanceOf(ControlBuilder::class, $this->control_builder);
◆ testDone()
LSControlBuilderTest::testDone |
( |
| ) |
|
Definition at line 134 of file LSControlBuilderTest.php.
136 $cb = $this->control_builder->done(
'cmd', 1);
137 $this->assertInstanceOf(ControlBuilder::class, $cb);
138 $this->assertInstanceOf(
Button\Primary::class, $cb->getDoneControl());
◆ testExit()
LSControlBuilderTest::testExit |
( |
| ) |
|
Definition at line 45 of file LSControlBuilderTest.php.
47 $cb = $this->control_builder->exit(
'cmd');
48 $this->assertInstanceOf(ControlBuilder::class, $cb);
49 $this->assertInstanceOf(
Button\Bulky::class, $cb->getExitControl());
◆ testGeneric()
LSControlBuilderTest::testGeneric |
( |
| ) |
|
Definition at line 118 of file LSControlBuilderTest.php.
120 $cb = $this->control_builder->generic(
'label',
'cmd', 1);
121 $this->assertInstanceOf(ControlBuilder::class, $cb);
122 $this->assertInstanceOf(
Button\Standard::class, $cb->getControls()[0]);
◆ testInitialValues()
LSControlBuilderTest::testInitialValues |
( |
| ) |
|
Definition at line 35 of file LSControlBuilderTest.php.
37 $this->assertNull($this->control_builder->getExitControl());
38 $this->assertNull($this->control_builder->getNextControl());
39 $this->assertNull($this->control_builder->getPreviousControl());
40 $this->assertNull($this->control_builder->getDoneControl());
41 $this->assertEquals([], $this->control_builder->getControls());
42 $this->assertNull($this->control_builder->getToc());
◆ testLocator()
LSControlBuilderTest::testLocator |
( |
| ) |
|
Definition at line 160 of file LSControlBuilderTest.php.
162 $cb = $this->control_builder->locator(
'cmd');
163 $this->assertInstanceOf(LocatorBuilder::class, $cb);
◆ testMode()
LSControlBuilderTest::testMode |
( |
| ) |
|
Definition at line 153 of file LSControlBuilderTest.php.
155 $cb = $this->control_builder->mode(
'cmd', [
'm1',
'm2']);
156 $this->assertInstanceOf(ControlBuilder::class, $cb);
157 $this->assertInstanceOf(ViewControl\Mode::class, $cb->getModeControls()[0]);
◆ testMultipleGeneric()
LSControlBuilderTest::testMultipleGeneric |
( |
| ) |
|
Definition at line 125 of file LSControlBuilderTest.php.
127 $cb = $this->control_builder
128 ->generic(
'label',
'cmd', 1)
129 ->generic(
'label',
'cmd', 2)
130 ->generic(
'label',
'cmd', 3);
131 $this->assertEquals(3, count($cb->getControls()));
◆ testNavigationControls()
LSControlBuilderTest::testNavigationControls |
( |
| ) |
|
Definition at line 65 of file LSControlBuilderTest.php.
67 $cb = $this->control_builder
70 $this->assertInstanceOf(ControlBuilder::class, $cb);
71 $this->assertInstanceOf(
Button\Standard::class, $cb->getPreviousControl());
72 $this->assertInstanceOf(
Button\Standard::class, $cb->getNextControl());
◆ testToC()
LSControlBuilderTest::testToC |
( |
| ) |
|
Definition at line 99 of file LSControlBuilderTest.php.
101 $toc = $this->control_builder->tableOfContent(
'cmd',
'rootnode');
102 $this->assertInstanceOf(TOCBuilder::class, $toc);
103 $this->assertEquals($toc, $this->control_builder->getToc());
◆ testUniqueDone()
LSControlBuilderTest::testUniqueDone |
( |
| ) |
|
◆ testUniqueExit()
LSControlBuilderTest::testUniqueExit |
( |
| ) |
|
◆ testUniqueLocator()
LSControlBuilderTest::testUniqueLocator |
( |
| ) |
|
Definition at line 166 of file LSControlBuilderTest.php.
References Vendor\Package\$e.
169 $loc = $this->control_builder->locator(
'cmd')
171 $loc = $this->control_builder->locator(
'cmd');
172 $this->assertFalse(
"This should not happen");
174 $this->assertTrue(
true);
◆ testUniqueNext()
LSControlBuilderTest::testUniqueNext |
( |
| ) |
|
◆ testUniquePrevious()
LSControlBuilderTest::testUniquePrevious |
( |
| ) |
|
◆ testUniqueToC()
LSControlBuilderTest::testUniqueToC |
( |
| ) |
|
Definition at line 106 of file LSControlBuilderTest.php.
References Vendor\Package\$e.
109 $toc = $this->control_builder->tableOfContent(
'cmd',
'rootnode')
111 $toc = $this->control_builder->tableOfContent(
'cmd',
'rootnode');
112 $this->assertFalse(
"This should not happen");
114 $this->assertTrue(
true);
The documentation for this class was generated from the following file: