From 8d01a0ecacb333aadef0bf8951cc966c99be2fbf Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Fri, 3 May 2013 11:11:23 -0500 Subject: [PATCH] Update service name when mocking - s/translator/MvcTranslator/ --- test/ValidatorPluginManagerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ValidatorPluginManagerTest.php b/test/ValidatorPluginManagerTest.php index 4dfa882c1..1ec344454 100644 --- a/test/ValidatorPluginManagerTest.php +++ b/test/ValidatorPluginManagerTest.php @@ -29,14 +29,14 @@ public function testAllowsInjectingTranslator() { $translator = $this->getMock('ZendTest\Validator\TestAsset\Translator'); - $slContents = array(array('translator', $translator)); + $slContents = array(array('MvcTranslator', $translator)); $serviceLocator = $this->getMock('Zend\ServiceManager\ServiceLocatorInterface'); $serviceLocator->expects($this->once()) ->method('get') ->will($this->returnValueMap($slContents)); $serviceLocator->expects($this->once()) ->method('has') - ->with($this->equalTo('translator')) + ->with($this->equalTo('MvcTranslator')) ->will($this->returnValue(true)); $this->validators->setServiceLocator($serviceLocator); @@ -51,7 +51,7 @@ public function testNoTranslatorInjectedWhenTranslatorIsNotPresent() $serviceLocator = $this->getMock('Zend\ServiceManager\ServiceLocatorInterface'); $serviceLocator->expects($this->once()) ->method('has') - ->with($this->equalTo('translator')) + ->with($this->equalTo('MvcTranslator')) ->will($this->returnValue(false)); $this->validators->setServiceLocator($serviceLocator);