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

testPublishUrlAliasForLocationUpdatesLocationPathIdentificationString() public method

Test for the publishUrlAliasForLocation() method.
    public function testPublishUrlAliasForLocationUpdatesLocationPathIdentificationString()
    {
        $handler = $this->getHandler();
        $locationGateway = $this->getLocationGateway();
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/publish_base.php');
        // Publishes the alias indicating that language is main, triggering updating of path_identification_string
        $handler->publishUrlAliasForLocation(316, 315, 'TEST TEST TEST', 'eng-GB', false, true);
        $locationData = $locationGateway->getBasicNodeData(316);
        self::assertEquals('path314/path315/test_test_test', $locationData['path_identification_string']);
    }
UrlAliasHandlerTest