public function testPublishUrlAliasForLocation()
{
$handler = $this->getHandler();
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/publish_base.php');
$handler->publishUrlAliasForLocation(314, 2, 'simple', 'eng-GB', true);
$publishedUrlAlias = $handler->lookup('simple');
self::assertEquals(4, $this->countRows());
self::assertEquals(new UrlAlias(array('id' => '0-' . md5('simple'), 'type' => UrlAlias::LOCATION, 'destination' => 314, 'languageCodes' => array('eng-GB'), 'pathData' => array(array('always-available' => true, 'translations' => array('eng-GB' => 'simple', 'cro-HR' => 'path314'))), 'alwaysAvailable' => true, 'isHistory' => false, 'isCustom' => false, 'forward' => false)), $publishedUrlAlias);
}