Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/announcementcenter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-25 10:52:59 +0300
committerJoas Schilling <coding@schilljs.com>2016-08-25 10:53:49 +0300
commit7204122a86775037001ea4212f25e786f5adfb3c (patch)
tree3e261ca8956edf6426a8e088e8965df4d23d9d19 /tests
parent5c1b0f14bb673e15bf2f1221f88c0d13c8102b7b (diff)
Fix notifications for admins
Diffstat (limited to 'tests')
-rw-r--r--tests/Notification/NotifierTest.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/Notification/NotifierTest.php b/tests/Notification/NotifierTest.php
index 6450cba..608a8f0 100644
--- a/tests/Notification/NotifierTest.php
+++ b/tests/Notification/NotifierTest.php
@@ -186,34 +186,4 @@ class NotifierTest extends TestCase {
$this->assertEquals($notification, $return);
}
-
- public function te1stAnnouncement() {
- $subject = 'subject' . "\n<html>";
- $message = 'message' . "\n<html>";
- $author = 'author';
- $time = time() - 10;
-
- $announcement = $this->manager->announce($subject, $message, $author, $time);
- $this->assertInternalType('int', $announcement['id']);
- $this->assertGreaterThan(0, $announcement['id']);
- $this->assertSame('subject &lt;html&gt;', $announcement['subject']);
- $this->assertSame('message<br />&lt;html&gt;', $announcement['message']);
- $this->assertSame('author', $announcement['author']);
- $this->assertSame($time, $announcement['time']);
-
- $this->assertEquals($announcement, $this->manager->getAnnouncement($announcement['id']));
-
- $this->assertEquals($announcement, $this->manager->getAnnouncement($announcement['id']));
-
- $this->assertEquals([$announcement], $this->manager->getAnnouncements(1));
-
- $this->manager->delete($announcement['id']);
-
- try {
- $this->manager->getAnnouncement($announcement['id']);
- $this->fail('Failed to delete the announcement');
- } catch (\InvalidArgumentException $e) {
- $this->assertInstanceOf('InvalidArgumentException', $e);
- }
- }
}