Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
267 * @return \Drupal\node\NodeInterface|\PHPUnit_Framework_MockObject_MockObject | 267 * @return \Drupal\node\NodeInterface|\PHPUnit_Framework_MockObject_MockObject |
268 * Mock node for testing. | 268 * Mock node for testing. |
269 */ | 269 */ |
270 protected function getMockNode($has_field, $comment_status, $form_location, $comment_count) { | 270 protected function getMockNode($has_field, $comment_status, $form_location, $comment_count) { |
271 $node = $this->getMock('\Drupal\node\NodeInterface'); | 271 $node = $this->getMock('\Drupal\node\NodeInterface'); |
272 $node->expects($this->once()) | 272 $node->expects($this->any()) |
273 ->method('hasField') | 273 ->method('hasField') |
274 ->willReturn($has_field); | 274 ->willReturn($has_field); |
275 | 275 |
276 if (empty($this->timestamp)) { | 276 if (empty($this->timestamp)) { |
277 $this->timestamp = time(); | 277 $this->timestamp = time(); |