commit abc1f0b697a02a8f85578abb1265187028c32ac6 Author: Lee Rowlands Date: Mon Jan 6 13:49:03 2014 +1000 Maybe this time diff --git a/core/modules/comment/tests/Drupal/comment/Tests/Entity/CommentLockTest.php b/core/modules/comment/tests/Drupal/comment/Tests/Entity/CommentLockTest.php index a134370..fe2aca7 100644 --- a/core/modules/comment/tests/Drupal/comment/Tests/Entity/CommentLockTest.php +++ b/core/modules/comment/tests/Drupal/comment/Tests/Entity/CommentLockTest.php @@ -71,6 +71,10 @@ public function testLocks() { $comment->expects($this->any()) ->method('getThread') ->will($this->returnValue('')); + $comment->expects($this->at(0)) + ->method('get') + ->with('status') + ->will($this->returnValue((object) array('value' => NULL))); $storage_controller = $this->getMock('Drupal\comment\CommentStorageControllerInterface'); $comment->preSave($storage_controller); $comment->postSave($storage_controller);