eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAliasHandlerTest::testLocationSwappedUpdatesLocationPathIdentificationString PHP Method

testLocationSwappedUpdatesLocationPathIdentificationString() public method

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