diff --git a/core/modules/node/lib/Drupal/node/Tests/Views/RevisionLinkTest.php b/core/modules/node/lib/Drupal/node/Tests/Views/RevisionLinkTest.php index 79f442c..575fecc 100644 --- a/core/modules/node/lib/Drupal/node/Tests/Views/RevisionLinkTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/Views/RevisionLinkTest.php @@ -69,7 +69,7 @@ public function testRevisionLinks() { // For the second node the current revision got set to the last revision, so // the first one should also link to the node page itself. $uri = $this->revisions[1]->uri(); - $this->assertLinkByHref($uri['path'] . '/revision/' . $this->revisions[2]->vid . '/view'); + $this->assertLinkByHref($uri['path'] . '/revision/' . $this->revisions[1]->vid . '/view'); $this->assertLinkByHref($uri['path'] . '/revision/' . $this->revisions[1]->vid . '/delete'); $this->assertLinkByHref($uri['path'] . '/revision/' . $this->revisions[1]->vid . '/revert'); @@ -84,7 +84,7 @@ public function testRevisionLinks() { $accounts['delete'] = $this->drupalCreateUser(array('delete all revisions', 'delete any page content')); $operations = array_keys($accounts); - + $uri = $this->revisions[1]->uri(); // Render the view with users which can only view/delete/revert revisions. foreach ($accounts as $op => $account) { $this->drupalLogin($account); @@ -93,10 +93,10 @@ public function testRevisionLinks() { // Check expected links. foreach ($operations as $operation) { if ($operation == $op) { - $this->assertLinkByHref($uri['path'] . '/revision/' . $this->revisions[2]->vid . '/' . $operation); + $this->assertLinkByHref($uri['path'] . '/revision/' . $this->revisions[1]->vid . '/' . $operation); } else { - $this->assertNoLinkByHref($uri['path'] . '/revision/' . $this->revisions[2]->vid . '/' . $operation); + $this->assertNoLinkByHref($uri['path'] . '/revision/' . $this->revisions[1]->vid . '/' . $operation); } } }