Tests/Unit/Controller/CreateControllerTest.php 1 location
|
@@ 39-46 (lines=8) @@
|
| 36 |
|
/** |
| 37 |
|
* @return EventDispatcherInterface |
| 38 |
|
*/ |
| 39 |
|
protected function createEvm() |
| 40 |
|
{ |
| 41 |
|
$evmProphecy = $this->prophesize(EventDispatcherInterface::class); |
| 42 |
|
$evmProphecy->dispatch(CrudEvents::READ, Argument::type(CollectionCrudEvent::class))->shouldBeCalled(); |
| 43 |
|
$evmProphecy->dispatch(CrudEvents::CREATE, Argument::type(Event::class))->shouldBeCalled(); |
| 44 |
|
|
| 45 |
|
return $evmProphecy->reveal(); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
/** |
| 49 |
|
* @return ReflectionConstructorFactory |
Tests/Unit/Controller/UpdateControllerTest.php 1 location
|
@@ 75-82 (lines=8) @@
|
| 72 |
|
/** |
| 73 |
|
* @return EventDispatcherInterface |
| 74 |
|
*/ |
| 75 |
|
protected function createEvm() |
| 76 |
|
{ |
| 77 |
|
$evmProphecy = $this->prophesize(EventDispatcherInterface::class); |
| 78 |
|
$evmProphecy->dispatch(CrudEvents::READ, Argument::type(CollectionCrudEvent::class))->shouldBeCalled(); |
| 79 |
|
$evmProphecy->dispatch(CrudEvents::UPDATE, Argument::type(Event::class))->shouldBeCalled(); |
| 80 |
|
|
| 81 |
|
return $evmProphecy->reveal(); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
/** |
| 85 |
|
* @return ReflectionConstructorFactory |