eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAliasHandlerTest::testListURLAliasesForLocation PHP Метод

testListURLAliasesForLocation() публичный Метод

Test for the listURLAliasesForLocation() method.
    public function testListURLAliasesForLocation()
    {
        $handler = $this->getHandler();
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_location.php');
        $urlAliases = $handler->listURLAliasesForLocation(315);
        self::assertEquals(array(new UrlAlias(array('id' => '2-b8a9f715dbb64fd5c56e7783c6820a61', 'type' => UrlAlias::LOCATION, 'destination' => 315, 'languageCodes' => array('eng-GB'), 'pathData' => array(array('always-available' => true, 'translations' => array('cro-HR' => 'jedan')), array('always-available' => false, 'translations' => array('cro-HR' => 'dva', 'eng-GB' => 'two'))), 'alwaysAvailable' => false, 'isHistory' => false, 'isCustom' => false, 'forward' => false)), new UrlAlias(array('id' => '2-c67ed9a09ab136fae610b6a087d82e21', 'type' => UrlAlias::LOCATION, 'destination' => 315, 'languageCodes' => array('cro-HR'), 'pathData' => array(array('always-available' => true, 'translations' => array('cro-HR' => 'jedan')), array('always-available' => false, 'translations' => array('cro-HR' => 'dva', 'eng-GB' => 'two'))), 'alwaysAvailable' => false, 'isHistory' => false, 'isCustom' => false, 'forward' => false))), $urlAliases);
    }
UrlAliasHandlerTest