From 70c7781aa8a1737b4c7ca8e935796b1ebc3d9f34 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 14 Oct 2016 15:36:05 +0200 Subject: apply some polish Signed-off-by: Arthur Schiwon --- .../tests/Unit/Notification/ListenerTest.php | 23 ---------------------- 1 file changed, 23 deletions(-) (limited to 'apps/comments/tests/Unit/Notification') diff --git a/apps/comments/tests/Unit/Notification/ListenerTest.php b/apps/comments/tests/Unit/Notification/ListenerTest.php index 5926264fa08..12f388fcff9 100644 --- a/apps/comments/tests/Unit/Notification/ListenerTest.php +++ b/apps/comments/tests/Unit/Notification/ListenerTest.php @@ -172,29 +172,6 @@ class ListenerTest extends TestCase { $this->listener->evaluate($event); } - public function testUnsupportedCommentObjectType() { - /** @var IComment|\PHPUnit_Framework_MockObject_MockObject $comment */ - $comment = $this->getMockBuilder('\OCP\Comments\IComment')->getMock(); - $comment->expects($this->once()) - ->method('getObjectType') - ->will($this->returnValue('vcards')); - $comment->expects($this->never()) - ->method('getMessage'); - - /** @var CommentsEvent|\PHPUnit_Framework_MockObject_MockObject $event */ - $event = $this->getMockBuilder('\OCP\Comments\CommentsEvent') - ->disableOriginalConstructor() - ->getMock(); - $event->expects($this->once()) - ->method('getComment') - ->will($this->returnValue($comment)); - $event->expects(($this->any())) - ->method(('getEvent')) - ->will($this->returnValue(CommentsEvent::EVENT_ADD)); - - $this->listener->evaluate($event); - } - public function testEvaluateUserDoesNotExist() { $message = '@foobar bla bla bla'; -- cgit v1.2.3