.../contextual/Tests/ContextualDynamicContextTest.php | 12 ++++++------ .../views/lib/Drupal/views/Tests/UI/DisplayTest.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/modules/contextual/lib/Drupal/contextual/Tests/ContextualDynamicContextTest.php b/core/modules/contextual/lib/Drupal/contextual/Tests/ContextualDynamicContextTest.php index 45f9fd6..207dfef 100644 --- a/core/modules/contextual/lib/Drupal/contextual/Tests/ContextualDynamicContextTest.php +++ b/core/modules/contextual/lib/Drupal/contextual/Tests/ContextualDynamicContextTest.php @@ -60,10 +60,10 @@ function testDifferentPermissions() { // Now, on the front page, all article nodes should have contextual links // placeholders, as should the view that contains them. $ids = array( - 'node[node]:' . $node1->nid, - 'node[node]:' . $node2->nid, - 'node[node]:' . $node3->nid, - 'views_ui[admin/structure/views/view]:frontpage', + 'node:node:' . $node1->nid . ':', + 'node:node:' . $node2->nid . ':', + 'node:node:' . $node3->nid . ':', + 'views_ui:admin/structure/views/view:frontpage:location=page&name=frontpage&display_id=page_1', ); // Editor user: can access contextual links and can edit articles. @@ -77,9 +77,9 @@ function testDifferentPermissions() { $response = $this->renderContextualLinks($ids, 'node'); $this->assertResponse(200); $json = drupal_json_decode($response); - $this->assertIdentical($json[$ids[0]], '
'); + $this->assertIdentical($json[$ids[0]], ''); $this->assertIdentical($json[$ids[1]], NULL); - $this->assertIdentical($json[$ids[2]], ''); + $this->assertIdentical($json[$ids[2]], ''); $this->assertIdentical($json[$ids[3]], NULL); // Authenticated user: can access contextual links, cannot edit articles. diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php index 0398d30..7bfb2b1 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php @@ -304,7 +304,7 @@ public function testPageContextualLinks() { )); $this->assertResponse(200); $json = drupal_json_decode($response); - $this->assertIdentical($json[$id], ''); + $this->assertIdentical($json[$id], ''); } }