public function MigrateUrlAliasTest::testUrlAlias in Zircon Profile 8
Same name in this branch
- 8 core/modules/path/src/Tests/Migrate/d6/MigrateUrlAliasTest.php \Drupal\path\Tests\Migrate\d6\MigrateUrlAliasTest::testUrlAlias()
- 8 core/modules/path/src/Tests/Migrate/d7/MigrateUrlAliasTest.php \Drupal\path\Tests\Migrate\d7\MigrateUrlAliasTest::testUrlAlias()
Same name and namespace in other branches
- 8.0 core/modules/path/src/Tests/Migrate/d7/MigrateUrlAliasTest.php \Drupal\path\Tests\Migrate\d7\MigrateUrlAliasTest::testUrlAlias()
Test the URL alias migration.
File
- core/
modules/ path/ src/ Tests/ Migrate/ d7/ MigrateUrlAliasTest.php, line 36 - Contains \Drupal\path\Tests\Migrate\d7\MigrateUrlAliasTest.
Class
- MigrateUrlAliasTest
- Tests URL alias migration.
Namespace
Drupal\path\Tests\Migrate\d7Code
public function testUrlAlias() {
$path = \Drupal::service('path.alias_storage')
->load([
'source' => '/taxonomy/term/4',
'alias' => '/term33',
'langcode' => 'und',
]);
$this
->assertIdentical('/taxonomy/term/4', $path['source']);
$this
->assertIdentical('/term33', $path['alias']);
$this
->assertIdentical('und', $path['langcode']);
}