Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch '6.9'
  • Loading branch information
andrerom committed May 30, 2017
2 parents b22f087 + ac39990 commit 115366b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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,
)
);

Expand All @@ -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'");
}
}

0 comments on commit 115366b

Please sign in to comment.