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

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

Test for the locationMoved() method.
    public function testLocationMovedReparentSubtree()
    {
        $handler = $this->getHandler();
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_move.php');
        $handler->publishUrlAliasForLocation(4, 3, 'move-this', 'eng-GB', false);
        $handler->locationMoved(4, 2, 3);
        $urlAlias = $handler->lookup('move-here/move-this/sub1/sub2');
        self::assertEquals(new UrlAlias(array('id' => '5-' . md5('sub2'), 'type' => UrlAlias::LOCATION, 'destination' => '6', 'languageCodes' => array('eng-GB'), 'pathData' => array(array('always-available' => false, 'translations' => array('eng-GB' => 'move-here')), array('always-available' => false, 'translations' => array('eng-GB' => 'move-this')), array('always-available' => false, 'translations' => array('eng-GB' => 'sub1')), array('always-available' => false, 'translations' => array('eng-GB' => 'sub2'))), 'alwaysAvailable' => false, 'isHistory' => false, 'isCustom' => false, 'forward' => false)), $urlAlias);
    }
UrlAliasHandlerTest