@@ 37-44 (lines=8) @@ | ||
34 | self::assertNull(null, $entity->d); |
|
35 | } |
|
36 | ||
37 | protected function createEvm(): EventDispatcherInterface |
|
38 | { |
|
39 | $evmProphecy = $this->prophesize(EventDispatcherInterface::class); |
|
40 | $evmProphecy->dispatch(CrudEvents::READ, Argument::type(CollectionCrudEvent::class))->shouldBeCalled(); |
|
41 | $evmProphecy->dispatch(CrudEvents::CREATE, Argument::type(Event::class))->shouldBeCalled(); |
|
42 | ||
43 | return $evmProphecy->reveal(); |
|
44 | } |
|
45 | ||
46 | protected function createConstructorFactory(): ReflectionConstructorFactory |
|
47 | { |
@@ 65-72 (lines=8) @@ | ||
62 | return $manager->reveal(); |
|
63 | } |
|
64 | ||
65 | protected function createEvm(): EventDispatcherInterface |
|
66 | { |
|
67 | $evmProphecy = $this->prophesize(EventDispatcherInterface::class); |
|
68 | $evmProphecy->dispatch(CrudEvents::READ, Argument::type(CollectionCrudEvent::class))->shouldBeCalled(); |
|
69 | $evmProphecy->dispatch(CrudEvents::UPDATE, Argument::type(Event::class))->shouldBeCalled(); |
|
70 | ||
71 | return $evmProphecy->reveal(); |
|
72 | } |
|
73 | ||
74 | protected function createConstructorFactory(): ReflectionConstructorFactory |
|
75 | { |