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=8a0a0f5871f2a024275588a01755e7f24ded967d;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;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 8a0a0f587..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; @@ -269,7 +269,7 @@ class CommentLinkBuilderTest extends UnitTestCase { */ protected function getMockNode($has_field, $comment_status, $form_location, $comment_count) { $node = $this->getMock('\Drupal\node\NodeInterface'); - $node->expects($this->once()) + $node->expects($this->any()) ->method('hasField') ->willReturn($has_field); @@ -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; } + }