eZ\Publish\Core\Repository\Tests\Service\Mock\UrlAliasTest::testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable PHP Method

testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable() public method

Test for the lookup() method.
public testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable ( $url, $prioritizedLanguageList, $languageCode )
    public function testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable($url, $prioritizedLanguageList, $languageCode)
    {
        $urlAliasService = $this->getRepository()->getURLAliasService();
        $configuration = array('prioritizedLanguageList' => $prioritizedLanguageList, 'showAllTranslations' => false);
        $this->setConfiguration($urlAliasService, $configuration);
        $urlAliasHandler = $this->getPersistenceMockHandler('Content\\UrlAlias\\Handler');
        $urlAliasHandler->expects($this->once())->method('lookup')->with($this->equalTo($url))->will($this->returnValue(new SPIUrlAlias(array('pathData' => array(array('always-available' => false, 'translations' => array('ger-DE' => 'ein')), array('always-available' => false, 'translations' => array('cro-HR' => 'dva', 'eng-GB' => 'two'))), 'languageCodes' => array('eng-GB', 'cro-HR'), 'alwaysAvailable' => false))));
        $urlAliasService->lookup($url, $languageCode);
    }
UrlAliasTest