Mercurial > hg > cmmr2012-drupal-site
diff core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php Thu May 09 15:34:47 2019 +0100 @@ -112,13 +112,13 @@ $this->drupalGet('node/' . $node->id() . '/revisions'); // Assert the old revision message. - $date = format_date($nodes[0]->revision_timestamp->value, 'short'); + $date = $this->container->get('date.formatter')->format($nodes[0]->revision_timestamp->value, 'short'); $url = new Url('entity.node.revision', ['node' => $nodes[0]->id(), 'node_revision' => $nodes[0]->getRevisionId()]); $this->assertRaw(\Drupal::l($date, $url) . ' by ' . $editor); // Assert the current revision message. - $date = format_date($nodes[1]->revision_timestamp->value, 'short'); - $this->assertRaw($nodes[1]->link($date) . ' by ' . $editor . '<p class="revision-log">' . $revision_log . '</p>'); + $date = $this->container->get('date.formatter')->format($nodes[1]->revision_timestamp->value, 'short'); + $this->assertRaw($nodes[1]->toLink($date)->toString() . ' by ' . $editor . '<p class="revision-log">' . $revision_log . '</p>'); } /**