X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FUnit%2FCommentLinkBuilderTest.php;h=48db158f612ac4b6af4362ea42ea8c9720e4ffcc;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=8aaae756098157d62bcdd21503d8fe6682b035d8;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php b/web/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php index 8aaae7560..48db158f6 100644 --- a/web/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php +++ b/web/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php @@ -60,7 +60,7 @@ class CommentLinkBuilderTest extends UnitTestCase { protected $timestamp; /** - * @var \Drupal\comment\CommentLinkBuilderInterface; + * @var \Drupal\comment\CommentLinkBuilderInterface */ protected $commentLinkBuilder; @@ -310,7 +310,7 @@ class CommentLinkBuilderTest extends UnitTestCase { $url = Url::fromRoute('node.view'); $node->expects($this->any()) - ->method('urlInfo') + ->method('toUrl') ->willReturn($url); $node->expects($this->any()) ->method('url') @@ -324,7 +324,9 @@ class CommentLinkBuilderTest extends UnitTestCase { namespace Drupal\comment; if (!function_exists('history_read')) { + function history_read() { return 0; } + }