@@ 39-56 (lines=18) @@ | ||
36 | ], $resolvedConfiguration); |
|
37 | } |
|
38 | ||
39 | public function testOverrideDefaults() |
|
40 | { |
|
41 | $containerBuilder = new ContainerBuilder(); |
|
42 | ||
43 | $containerBuilder->prependExtensionConfig(SymplifyDefaultAutowireBundle::ALIAS, [ |
|
44 | 'autowire_types' => [ |
|
45 | 'Doctrine\ORM\EntityManager' => 'other_entity_manager', |
|
46 | ], |
|
47 | ]); |
|
48 | ||
49 | $resolvedConfiguration = $this->configurationResolver->resolveFromContainerBuilder( |
|
50 | $containerBuilder |
|
51 | ); |
|
52 | ||
53 | $autowireTypes = $resolvedConfiguration['autowire_types']; |
|
54 | $this->assertCount(6, $autowireTypes); |
|
55 | $this->assertSame('other_entity_manager', $autowireTypes['Doctrine\ORM\EntityManager']); |
|
56 | } |
|
57 | ||
58 | public function testAddNewValues() |
|
59 | { |
|
@@ 58-75 (lines=18) @@ | ||
55 | $this->assertSame('other_entity_manager', $autowireTypes['Doctrine\ORM\EntityManager']); |
|
56 | } |
|
57 | ||
58 | public function testAddNewValues() |
|
59 | { |
|
60 | $containerBuilder = new ContainerBuilder(); |
|
61 | ||
62 | $containerBuilder->prependExtensionConfig(SymplifyDefaultAutowireBundle::ALIAS, [ |
|
63 | 'autowire_types' => [ |
|
64 | 'SomeInterface' => 'some_service', |
|
65 | ], |
|
66 | ]); |
|
67 | ||
68 | $resolvedConfiguration = $this->configurationResolver->resolveFromContainerBuilder( |
|
69 | $containerBuilder |
|
70 | ); |
|
71 | ||
72 | $autowireTypes = $resolvedConfiguration['autowire_types']; |
|
73 | $this->assertCount(7, $autowireTypes); |
|
74 | $this->assertSame('some_service', $autowireTypes['SomeInterface']); |
|
75 | } |
|
76 | ||
77 | public function testCache() |
|
78 | { |