protected function getConfigResolverInterfaceMock() { $configResolverInterfaceMock = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface'); $configResolverInterfaceMock->expects($this->any())->method('getParameter')->with('languages')->will($this->returnValue($this->getLocale())); return $configResolverInterfaceMock; }