Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function testReplacement(): void |
||
29 | { |
||
30 | $def = new Definition(); |
||
31 | $this->setDefinition(EditInPlaceTranslator::class, $def); |
||
32 | |||
33 | $twigExtension = new Definition(); |
||
34 | $twigExtension->addArgument('should_be_replaced'); |
||
35 | $this->setDefinition('twig.extension.trans', $twigExtension); |
||
36 | |||
37 | $this->compile(); |
||
38 | |||
39 | $this->assertContainerBuilderHasServiceDefinitionWithArgument('twig.extension.trans', 0, new Reference(EditInPlaceTranslator::class)); |
||
40 | } |
||
42 |