public function testCreateCustomUrlAlias()
{
$handler = $this->getHandler();
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/publish_base.php');
$path = 'custom-location-alias';
$customUrlAlias = $handler->createCustomUrlAlias(314, $path, false, 'cro-HR', false);
self::assertEquals(4, $this->countRows());
self::assertEquals(new UrlAlias(array('id' => '0-' . md5($path), 'type' => UrlAlias::LOCATION, 'destination' => 314, 'pathData' => array(array('always-available' => false, 'translations' => array('cro-HR' => 'custom-location-alias'))), 'languageCodes' => array('cro-HR'), 'alwaysAvailable' => false, 'isHistory' => false, 'isCustom' => true, 'forward' => false)), $customUrlAlias);
}