protected $timestamp;
/**
- * @var \Drupal\comment\CommentLinkBuilderInterface;
+ * @var \Drupal\comment\CommentLinkBuilderInterface
*/
protected $commentLinkBuilder;
*/
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);
$url = Url::fromRoute('node.view');
$node->expects($this->any())
- ->method('urlInfo')
+ ->method('toUrl')
->willReturn($url);
$node->expects($this->any())
->method('url')
namespace Drupal\comment;
if (!function_exists('history_read')) {
+
function history_read() {
return 0;
}
+
}