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

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

Test for the publishUrlAliasForLocation() method.
    public function testPublishUrlAliasForLocationReusesHistory()
    {
        $handler = $this->getHandler();
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/publish_base.php');
        $handler->publishUrlAliasForLocation(314, 2, 'jedan', 'cro-HR');
        $urlAlias = $handler->lookup('jedan');
        $handler->publishUrlAliasForLocation(314, 2, 'dva', 'cro-HR');
        $countBeforeReusing = $this->countRows();
        $handler->publishUrlAliasForLocation(314, 2, 'jedan', 'cro-HR');
        $urlAliasReusesHistory = $handler->lookup('jedan');
        self::assertEquals($countBeforeReusing, $this->countRows());
        self::assertEquals($urlAlias, $urlAliasReusesHistory);
    }
UrlAliasHandlerTest