Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function testIfCompilerPassCollectsServicesByAddingMethodCallsTheseWillExist(): void |
||
28 | { |
||
29 | $collectingService = new Definition(); |
||
30 | $this->setDefinition('php_translation.storage.foobar', $collectingService); |
||
31 | |||
32 | $collectedService = new Definition(); |
||
33 | $collectedService->addTag('php_translation.storage', ['name' => 'foobar', 'type' => 'remote']); |
||
34 | $this->setDefinition('collected_service', $collectedService); |
||
35 | |||
36 | $this->compile(); |
||
37 | |||
38 | $this->assertContainerBuilderHasServiceDefinitionWithMethodCall( |
||
39 | 'php_translation.storage.foobar', |
||
40 | 'addRemoteStorage', |
||
41 | [new Reference('collected_service')] |
||
42 | ); |
||
45 |