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

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

Test for the locationSwapped() method.
    public function testLocationSwappedMultipleLanguagesUpdatesLocationPathIdentificationString()
    {
        $handler = $this->getHandler();
        $locationGateway = $this->getLocationGateway();
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_swap_multilang_path_identification_string.php');
        $countBeforeReusing = $this->countRows();
        $handler->locationSwapped(314, 2, 315, 2);
        $this->assertEquals($countBeforeReusing, $this->countRows());
        $locationData = $locationGateway->getBasicNodeData(314);
        self::assertEquals('zwei', $locationData['path_identification_string']);
        $locationData = $locationGateway->getBasicNodeData(315);
        self::assertEquals('jedan', $locationData['path_identification_string']);
    }
UrlAliasHandlerTest