1 | <?php |
||
20 | class IncidentEventSubscriberTest extends PHPUnit_Framework_TestCase |
||
21 | { |
||
22 | /** |
||
23 | * @var IncidentEventSubscriber; |
||
24 | */ |
||
25 | private $incidentEventSubscriber; |
||
26 | |||
27 | /** |
||
28 | * @var IncidentSirenCollection; |
||
29 | */ |
||
30 | private $incidentSirenC; |
||
31 | |||
32 | /** |
||
33 | * set up base dependency |
||
34 | */ |
||
35 | public function setUp() |
||
47 | |||
48 | /** |
||
49 | * Test PreUpdate |
||
50 | */ |
||
51 | public function testPreUpdate() |
||
72 | |||
73 | /** |
||
74 | * Test PreUpdate |
||
75 | */ |
||
76 | public function testPrePersist() |
||
91 | |||
92 | /** |
||
93 | * Test get subscribed events |
||
94 | */ |
||
95 | public function testGetSubscribedEvents() |
||
105 | |||
106 | /** |
||
107 | * @return IncidentEventSubscriber |
||
108 | */ |
||
109 | protected function getIncidentEventSubscriber() |
||
113 | |||
114 | /** |
||
115 | * @param IncidentEventSubscriber $incidentEventSub |
||
116 | */ |
||
117 | protected function setIncidentEventSubscriber(IncidentEventSubscriber $incidentEventSub) |
||
121 | |||
122 | /** |
||
123 | * @return IncidentSirenCollection |
||
124 | */ |
||
125 | protected function getIncidentSirenC() |
||
129 | |||
130 | /** |
||
131 | * @param IncidentSirenCollection $incidentSirenC |
||
132 | */ |
||
133 | protected function setIncidentSirenC(IncidentSirenCollection $incidentSirenC) |
||
137 | |||
138 | /** |
||
139 | * @param $sirenNType |
||
140 | * |
||
141 | * @return \PHPUnit_Framework_MockObject_MockObject|IncidentSiren |
||
142 | */ |
||
143 | private function createSirenMock($sirenNType) |
||
160 | |||
161 | /** |
||
162 | * @param $eventArgsClassName |
||
163 | * @return \PHPUnit_Framework_MockObject_MockObject |
||
164 | */ |
||
165 | protected function createEventArgsMock($eventArgsClassName) |
||
173 | |||
174 | /** |
||
175 | * @param $entity |
||
176 | */ |
||
177 | protected function setUpExpectsForEntity($entity) |
||
190 | } |
||
191 |