diff --git a/core/modules/aggregator/src/Tests/UpdateFeedTest.php b/core/modules/aggregator/src/Tests/UpdateFeedTest.php index fa7a8c7..a4f2dd7 100644 --- a/core/modules/aggregator/src/Tests/UpdateFeedTest.php +++ b/core/modules/aggregator/src/Tests/UpdateFeedTest.php @@ -31,7 +31,7 @@ function testUpdateFeed() { $this->assertRaw(t('The feed %name has been updated.', array('%name' => $edit['title[0][value]'])), format_string('The feed %name has been updated.', array('%name' => $edit['title[0][value]']))); // Check feed data. - $this->assertUrl($feed->url('canonical', [], ['absolute' => TRUE])); + $this->assertUrl($feed->url()); $this->assertTrue($this->uniqueFeed($edit['title[0][value]'], $edit['url[0][value]']), 'The feed is unique.'); // Check feed source. diff --git a/core/modules/node/node.tokens.inc b/core/modules/node/node.tokens.inc index ae894e9..7109d30 100644 --- a/core/modules/node/node.tokens.inc +++ b/core/modules/node/node.tokens.inc @@ -169,7 +169,7 @@ function node_tokens($type, $tokens, array $data = array(), array $options = arr break; case 'edit-url': - $replacements[$original] = $node->url('canonical', $url_options); + $replacements[$original] = $node->url('edit-form', $url_options); break; // Default values for the chained tokens handled below. diff --git a/core/modules/rdf/src/Tests/TaxonomyTermFieldAttributesTest.php b/core/modules/rdf/src/Tests/TaxonomyTermFieldAttributesTest.php index 4eaec12..cb51ec2 100644 --- a/core/modules/rdf/src/Tests/TaxonomyTermFieldAttributesTest.php +++ b/core/modules/rdf/src/Tests/TaxonomyTermFieldAttributesTest.php @@ -95,7 +95,7 @@ function testNodeTeaser() { // Parse the teaser. $parser = new \EasyRdf_Parser_Rdfa(); $graph = new \EasyRdf_Graph(); - $base_uri = \Durpal::url('', [], ['absolute' => TRUE]); + $base_uri = \Drupal::url('', [], ['absolute' => TRUE]); $parser->parse($graph, $html, 'rdfa', $base_uri); // Node relations to taxonomy terms. diff --git a/core/modules/search/src/Tests/SearchLanguageTest.php b/core/modules/search/src/Tests/SearchLanguageTest.php index 5573a52..d576983 100644 --- a/core/modules/search/src/Tests/SearchLanguageTest.php +++ b/core/modules/search/src/Tests/SearchLanguageTest.php @@ -98,7 +98,7 @@ function testLanguages() { // Ensure selecting no language does not make the query different. $this->drupalPostForm('search/node', array(), t('Advanced search')); - $this->assertUrl(\Drupal::url('search.view_node', [], ['query' => ['keys' => ''], 'absolute' => TRUE]), [], 'Correct page redirection, no language filtering.'); + $this->assertUrl(\Drupal::url('search.view_node_search', [], ['query' => ['keys' => ''], 'absolute' => TRUE]), [], 'Correct page redirection, no language filtering.'); // Pick French and ensure it is selected. $edit = array('language[fr]' => TRUE); diff --git a/core/modules/user/src/Tests/UserBlocksTest.php b/core/modules/user/src/Tests/UserBlocksTest.php index 90fcbfd..89be95c 100644 --- a/core/modules/user/src/Tests/UserBlocksTest.php +++ b/core/modules/user/src/Tests/UserBlocksTest.php @@ -54,7 +54,7 @@ function testUserLoginBlock() { $this->assertNoText(t('User login'), 'Logged in.'); // Check that we are still on the same page. - $this->assertUrl(\Drupal::url('user.admin_permissions'), ['absolute' => TRUE], 'Still on the same page after login for access denied page'); + $this->assertUrl(\Drupal::url('user.admin_permissions', [], ['absolute' => TRUE]), 'Still on the same page after login for access denied page'); // Now, log out and repeat with a non-403 page. $this->drupalLogout(); @@ -67,7 +67,7 @@ function testUserLoginBlock() { $this->drupalLogout(); $this->drupalPostForm('http://example.com/', $edit, t('Log in'), array('external' => FALSE)); // Check that we remain on the site after login. - $this->assertUrl($user->url('canonical'), ['absolute' => TRUE], 'Redirected to user profile page after login from the frontpage'); + $this->assertUrl($user->url('canonical', ['absolute' => TRUE]), 'Redirected to user profile page after login from the frontpage'); } /**