File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class DunglasApiExtension extends Extension implements PrependExtensionInterface
30
30
*/
31
31
public function prepend (ContainerBuilder $ container )
32
32
{
33
- if (null !== ($ frameworkConfiguration = $ container ->getExtensionConfig ('framework ' ))) {
33
+ if (! empty ($ frameworkConfiguration = $ container ->getExtensionConfig ('framework ' ))) {
34
34
if (!isset ($ frameworkConfiguration ['serializer ' ]) || !isset ($ frameworkConfiguration ['serializer ' ]['enabled ' ])) {
35
35
$ container ->prependExtensionConfig ('framework ' , [
36
36
'serializer ' => [
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public function testPrependWhenNotConfigured()
70
70
{
71
71
$ containerBuilderProphecy = $ this ->prophesize ('Symfony\Component\DependencyInjection\ContainerBuilder ' );
72
72
$ containerBuilderProphecy ->getExtensionConfig ('framework ' )->willReturn ([])->shouldBeCalled ();
73
- $ containerBuilderProphecy ->prependExtensionConfig ('framework ' , Argument::type ('array ' ))->shouldBeCalled ();
73
+ $ containerBuilderProphecy ->prependExtensionConfig ('framework ' , Argument::type ('array ' ))->shouldNotBeCalled ();
74
74
$ containerBuilder = $ containerBuilderProphecy ->reveal ();
75
75
76
76
$ this ->extension ->prepend ($ containerBuilder );
You can’t perform that action at this time.
0 commit comments