diff --git a/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php b/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php index e44b13e..2fb27a7 100644 --- a/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php +++ b/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php @@ -103,6 +103,14 @@ public function testUrlAlias() { ]; $path = \Drupal::service('path.alias_storage')->load($conditions); $this->assertPath('3', $conditions, $path); + + $path = \Drupal::service('path.alias_storage')->load(['alias' => '/noslash']); + $conditions = [ + 'source' => '/admin', + 'alias' => '/noslash', + 'langcode' => 'und', + ]; + $this->assertPath('2', $conditions, $path); } /** @@ -132,11 +140,6 @@ public function testUrlAliasWithTranslatedNodes() { $path = $alias_storage->load(['alias' => '/the-zulu-people']); $this->assertSame('/node/12', $path['source']); $this->assertSame('en', $path['langcode']); - - // Alias for 'admin', an alias without a slash. - $path = $alias_storage->load(['alias' => '/noslash']); - $this->assertSame('/admin', $path['source']); - $this->assertSame('und', $path['langcode']); } }