◆ getSignalMock()
ILIAS_UI_Component_TriggererTest::getSignalMock |
( |
| ) |
|
|
protected |
Definition at line 41 of file TriggererTest.php.
43 $this->signal_mock_counter++;
46 ->disableOriginalClone()
47 ->disableArgumentCloning()
48 ->disallowMockingUnknownTypes()
49 ->setMockClassName(
"Signal_{$this->signal_mock_counter}")
◆ setUp()
ILIAS_UI_Component_TriggererTest::setUp |
( |
| ) |
|
◆ testAppendTriggeredSignal()
ILIAS_UI_Component_TriggererTest::testAppendTriggeredSignal |
( |
| ) |
|
Definition at line 66 of file TriggererTest.php.
72 $mock = $this->mock->_appendTriggeredSignal($signal1,
"some_event");
74 ->_appendTriggeredSignal($signal2,
"some_event")
75 ->_appendTriggeredSignal($signal3,
"some_event");
77 $this->assertEquals([], $this->mock->getTriggeredSignals());
78 $this->assertEquals([
new TriggeredSignal($signal1,
"some_event")], $mock->getTriggeredSignals());
◆ testAppendTriggeredSignalIsImmutable()
ILIAS_UI_Component_TriggererTest::testAppendTriggeredSignalIsImmutable |
( |
| ) |
|
Definition at line 58 of file TriggererTest.php.
62 $mock = $this->mock->_appendTriggeredSignal($signal,
"some_event");
63 $this->assertNotSame($mock, $this->mock);
◆ testGetTriggeredSignals()
ILIAS_UI_Component_TriggererTest::testGetTriggeredSignals |
( |
| ) |
|
Definition at line 142 of file TriggererTest.php.
148 ->_appendTriggeredSignal($signal1,
"some_event")
149 ->_appendTriggeredSignal($signal2,
"some_event");
151 $signals = $mock->getTriggeredSignalsFor(
"some_event");
153 $this->assertEquals([$signal1, $signal2], $signals);
◆ testGetTriggeredSignalsForNonRegisteredSignal()
ILIAS_UI_Component_TriggererTest::testGetTriggeredSignalsForNonRegisteredSignal |
( |
| ) |
|
Definition at line 136 of file TriggererTest.php.
138 $signals = $this->mock->getTriggeredSignalsFor(
"some_event");
139 $this->assertEquals([], $signals);
◆ testSetTriggeredSignal()
ILIAS_UI_Component_TriggererTest::testSetTriggeredSignal |
( |
| ) |
|
Definition at line 103 of file TriggererTest.php.
108 $this->mock->_setTriggeredSignal($signal1,
"some_event");
109 $this->mock->_setTriggeredSignal($signal2,
"some_event");
111 $this->assertEquals([
new TriggeredSignal($signal2,
"some_event")], $this->mock->getTriggeredSignals());
◆ testStartEmpty()
ILIAS_UI_Component_TriggererTest::testStartEmpty |
( |
| ) |
|
Definition at line 53 of file TriggererTest.php.
55 $this->assertEquals([], $this->mock->getTriggeredSignals());
◆ testWithResetTriggeredSignal()
ILIAS_UI_Component_TriggererTest::testWithResetTriggeredSignal |
( |
| ) |
|
Definition at line 123 of file TriggererTest.php.
129 ->_appendTriggeredSignal($signal1,
"some_event")
130 ->_appendTriggeredSignal($signal2,
"some_event")
131 ->withResetTriggeredSignals();
133 $this->assertEquals([], $mock->getTriggeredSignals());
◆ testWithResetTriggeredSignalIsImmutable()
ILIAS_UI_Component_TriggererTest::testWithResetTriggeredSignalIsImmutable |
( |
| ) |
|
Definition at line 114 of file TriggererTest.php.
118 $mock = $this->mock->withResetTriggeredSignals();
120 $this->assertNotSame($mock, $this->mock);
◆ testWithTriggeredSignal()
ILIAS_UI_Component_TriggererTest::testWithTriggeredSignal |
( |
| ) |
|
Definition at line 91 of file TriggererTest.php.
96 $mock = $this->mock->_withTriggeredSignal($signal1,
"some_event");
97 $mock2 = $mock->_withTriggeredSignal($signal2,
"some_event");
99 $this->assertEquals([
new TriggeredSignal($signal1,
"some_event")], $mock->getTriggeredSignals());
100 $this->assertEquals([
new TriggeredSignal($signal2,
"some_event")], $mock2->getTriggeredSignals());
◆ testWithTriggeredSignalIsImmutable()
ILIAS_UI_Component_TriggererTest::testWithTriggeredSignalIsImmutable |
( |
| ) |
|
Definition at line 82 of file TriggererTest.php.
86 $mock = $this->mock->_withTriggeredSignal($signal,
"some_event");
88 $this->assertNotSame($mock, $this->mock);
◆ $signal_mock_counter
ILIAS_UI_Component_TriggererTest::$signal_mock_counter = 0 |
|
protected |
The documentation for this class was generated from the following file: