eZ\Publish\Core\Repository\Tests\Service\Mock\UrlAliasTest::testReverseLookupCustomConfiguration PHP Méthode

testReverseLookupCustomConfiguration() public méthode

Test for the reverseLookup() method.
    public function testReverseLookupCustomConfiguration()
    {
        $mockedService = $this->getPartlyMockedURLAliasServiceService(array('listLocationAliases'));
        $location = $this->getLocationStub();
        $mockedService->expects($this->once())->method('listLocationAliases')->with($this->equalTo($location), $this->equalTo(false), $this->equalTo(null), $this->equalTo($showAllTranslations = 'HELLO!'), $this->equalTo($prioritizedLanguageList = array('LANGUAGES!')))->will($this->returnValue(array()));
        $mockedService->reverseLookup($location, null, $showAllTranslations, $prioritizedLanguageList);
    }
UrlAliasTest