| @@ 106-114 (lines=9) @@ | ||
| 103 | $this->assertContainsOnlyInstancesOf(EventListenerInterface::class, $listeners); |
|
| 104 | } |
|
| 105 | ||
| 106 | public function testEventHandlerLazyLoading() |
|
| 107 | { |
|
| 108 | foreach ($this->testSubject->getServiceIds() as $id) { |
|
| 109 | if (preg_match('/^governor.event_handler.*/', $id)) { |
|
| 110 | $def = $this->testSubject->getDefinition($id); |
|
| 111 | $this->assertTrue($def->isLazy()); |
|
| 112 | } |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||
| 116 | public function testCommandHandlerLazyLoading() |
|
| 117 | { |
|
| @@ 116-128 (lines=13) @@ | ||
| 113 | } |
|
| 114 | } |
|
| 115 | ||
| 116 | public function testCommandHandlerLazyLoading() |
|
| 117 | { |
|
| 118 | foreach ($this->testSubject->getServiceIds() as $id) { |
|
| 119 | if (preg_match('/^governor.command_handler.*/', $id) || preg_match( |
|
| 120 | '/^governor.aggregate_command_handler.*/', |
|
| 121 | $id |
|
| 122 | ) |
|
| 123 | ) { |
|
| 124 | $def = $this->testSubject->getDefinition($id); |
|
| 125 | $this->assertTrue($def->isLazy()); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | } |
|
| 129 | ||
| 130 | public function testIdentifierFactory() |
|
| 131 | { |
|