summaryrefslogtreecommitdiffstats
path: root/apps/comments/tests/Unit/Notification
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-14 15:36:05 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-14 15:36:05 +0200
commit70c7781aa8a1737b4c7ca8e935796b1ebc3d9f34 (patch)
tree5515907e5c06674e076429e597b77eb832bd53a2 /apps/comments/tests/Unit/Notification
parent1bcd2ca8e35dca6e68e5f06506ade0a78a2beae8 (diff)
downloadnextcloud-server-70c7781aa8a1737b4c7ca8e935796b1ebc3d9f34.tar.gz
nextcloud-server-70c7781aa8a1737b4c7ca8e935796b1ebc3d9f34.zip
apply some polish
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/comments/tests/Unit/Notification')
-rw-r--r--apps/comments/tests/Unit/Notification/ListenerTest.php23
1 files changed, 0 insertions, 23 deletions
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';