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