Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
58 * @var int | 58 * @var int |
59 */ | 59 */ |
60 protected $timestamp; | 60 protected $timestamp; |
61 | 61 |
62 /** | 62 /** |
63 * @var \Drupal\comment\CommentLinkBuilderInterface; | 63 * @var \Drupal\comment\CommentLinkBuilderInterface |
64 */ | 64 */ |
65 protected $commentLinkBuilder; | 65 protected $commentLinkBuilder; |
66 | 66 |
67 /** | 67 /** |
68 * Prepares mocks for the test. | 68 * Prepares mocks for the test. |
308 ->method('id') | 308 ->method('id') |
309 ->willReturn(1); | 309 ->willReturn(1); |
310 | 310 |
311 $url = Url::fromRoute('node.view'); | 311 $url = Url::fromRoute('node.view'); |
312 $node->expects($this->any()) | 312 $node->expects($this->any()) |
313 ->method('urlInfo') | 313 ->method('toUrl') |
314 ->willReturn($url); | 314 ->willReturn($url); |
315 $node->expects($this->any()) | 315 $node->expects($this->any()) |
316 ->method('url') | 316 ->method('url') |
317 ->willReturn(['route_name' => 'node.view']); | 317 ->willReturn(['route_name' => 'node.view']); |
318 | 318 |
322 } | 322 } |
323 | 323 |
324 namespace Drupal\comment; | 324 namespace Drupal\comment; |
325 | 325 |
326 if (!function_exists('history_read')) { | 326 if (!function_exists('history_read')) { |
327 | |
327 function history_read() { | 328 function history_read() { |
328 return 0; | 329 return 0; |
329 } | 330 } |
331 | |
330 } | 332 } |