From c9d59e458b44c80f3e9b6cffccbbb18aeae4ea93 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 30 May 2017 16:54:39 +0200 Subject: [PATCH] [Unit tests][Sf 3.3] Updated InputParserPassTest to respect case of service id (#1998) --- .../DependencyInjection/Compiler/InputParserPassTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eZ/Bundle/EzPublishRestBundle/Tests/DependencyInjection/Compiler/InputParserPassTest.php b/eZ/Bundle/EzPublishRestBundle/Tests/DependencyInjection/Compiler/InputParserPassTest.php index 3e03cdd6dbe..e6e22c225a6 100644 --- a/eZ/Bundle/EzPublishRestBundle/Tests/DependencyInjection/Compiler/InputParserPassTest.php +++ b/eZ/Bundle/EzPublishRestBundle/Tests/DependencyInjection/Compiler/InputParserPassTest.php @@ -24,7 +24,7 @@ public function testProcess() $containerBuilder->addDefinitions( array( 'ezpublish_rest.input.parsing_dispatcher' => new Definition(), - 'ezpublish_rest.input.parser.UnitTest' => $visitorDefinition, + 'ezpublish_rest.input.parser.unit_test' => $visitorDefinition, ) ); @@ -38,6 +38,6 @@ public function testProcess() self::assertEquals('addParser', $dispatcherMethodCalls[0][0], "Failed asserting that called method is 'addParser'"); self::assertInstanceOf('Symfony\\Component\\DependencyInjection\\Reference', $dispatcherMethodCalls[0][1][1], 'Failed asserting that method call is to a Reference object'); - self::assertEquals('ezpublish_rest.input.parser.unittest', $dispatcherMethodCalls[0][1][1]->__toString(), "Failed asserting that Referenced service is 'ezpublish_rest.input.parser.UnitTest'"); + self::assertEquals('ezpublish_rest.input.parser.unit_test', $dispatcherMethodCalls[0][1][1]->__toString(), "Failed asserting that Referenced service is 'ezpublish_rest.input.parser.unit_test'"); } }