diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUrlAliasTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUrlAliasTest.php index eae71e4..572861d 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUrlAliasTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUrlAliasTest.php @@ -61,8 +61,8 @@ public function testUrlAlias() { // Test that we can re-import using the UrlAlias destination. Database::getConnection('default', 'migrate') ->update('url_alias') - ->fields(array('dst' => '/new-url-alias')) - ->condition('src', '/node/2') + ->fields(array('dst' => 'new-url-alias')) + ->condition('src', 'node/2') ->execute(); db_update($migration->getIdMap()->mapTableName()) diff --git a/core/modules/path/src/Tests/PathLanguageUiTest.php b/core/modules/path/src/Tests/PathLanguageUiTest.php index ab33c0e..462abb9 100644 --- a/core/modules/path/src/Tests/PathLanguageUiTest.php +++ b/core/modules/path/src/Tests/PathLanguageUiTest.php @@ -45,8 +45,8 @@ protected function setUp() { function testLanguageNeutralUrl() { $name = $this->randomMachineName(8); $edit = array(); - $edit['source'] = 'admin/config/search/path'; - $edit['alias'] = $name; + $edit['source'] = '/admin/config/search/path'; + $edit['alias'] ='/' . $name; $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save')); $this->drupalGet($name); @@ -59,8 +59,8 @@ function testLanguageNeutralUrl() { function testDefaultLanguageUrl() { $name = $this->randomMachineName(8); $edit = array(); - $edit['source'] = 'admin/config/search/path'; - $edit['alias'] = $name; + $edit['source'] = '/admin/config/search/path'; + $edit['alias'] = '/' . $name; $edit['langcode'] = 'en'; $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save')); @@ -74,8 +74,8 @@ function testDefaultLanguageUrl() { function testNonDefaultUrl() { $name = $this->randomMachineName(8); $edit = array(); - $edit['source'] = 'admin/config/search/path'; - $edit['alias'] = $name; + $edit['source'] = '/admin/config/search/path'; + $edit['alias'] = '/' . $name; $edit['langcode'] = 'fr'; $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save')); diff --git a/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php b/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php index 548f80f..b0acb12 100644 --- a/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php +++ b/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php @@ -179,8 +179,8 @@ public function testIsValidWithPathAlias() { ->willReturn([RouteObjectInterface::ROUTE_NAME => 'test_route', '_raw_variables' => new ParameterBag(['key' => 'value'])]); $this->pathProcessor->expects($this->once()) ->method('processInbound') - ->with('path-alias', $this->anything()) - ->willReturn('test-path'); + ->with('/path-alias', $this->anything()) + ->willReturn('/test-path'); $this->assertTrue($this->pathValidator->isValid('path-alias')); }