+ $anon_user = $this->getMock('Drupal\Core\Session\AccountInterface');
+ $anon_user->expects($this->any())
+ ->method('isAnonymous')
+ ->will($this->returnValue(TRUE));
+ $comment->expects($this->any())
+ ->method('getOwner')
+ ->will($this->returnValue($anon_user));
+