diff --git a/core/modules/node/src/Tests/NodeRevisionsAuthorTest.php b/core/modules/node/src/Tests/NodeRevisionsAuthorTest.php index 54c74fe..b642843 100644 --- a/core/modules/node/src/Tests/NodeRevisionsAuthorTest.php +++ b/core/modules/node/src/Tests/NodeRevisionsAuthorTest.php @@ -7,8 +7,8 @@ namespace Drupal\node\Tests; +use Drupal\Component\Utility\SafeMarkup; use Drupal\node\Entity\Node; -use Drupal\Component\Utility\String; /** * Creates a new node, initially authored by $user1 (r0), and then @@ -110,7 +110,7 @@ function testRevisions() { $this->assertTrue($node->getRevisionAuthor()->id() == $this->user2->id(), 'The revised node has the correct revision author.'); // Revert to the original node. - $uri = String::format('node/!nid/revisions/!orignid/revert', [ + $uri = SafeMarkup::format('node/!nid/revisions/!orignid/revert', [ '!nid' => $node->id(), '!orignid' => $this->originalNode->getRevisionid() ]); @@ -133,7 +133,7 @@ function testRevisions() { // Revert again to the revised version and check that node author and // revision author fields are correct. // Revert to the original node. - $uri = String::format('node/!nid/revisions/!revisednid/revert', [ + $uri = SafeMarkup::format('node/!nid/revisions/!revisednid/revert', [ '!nid' => $reverted_node->id(), '!revisednid' => $this->revisedNode->getRevisionid() ]);