summaryrefslogtreecommitdiffstats
path: root/tests/lib/Notification/DummyApp.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-17 20:22:03 +0200
committerGitHub <noreply@github.com>2019-07-17 20:22:03 +0200
commit5b604eaeaba7d5ee5dd12a92f37c9e8e7519c9c2 (patch)
treea507ff70a162b7c779a62faa1f341ec025539b9f /tests/lib/Notification/DummyApp.php
parent782554d2acdfd48b322753500906e8b291035250 (diff)
parent594efca1e3b936d0d86f2d80ebf366980a425713 (diff)
downloadnextcloud-server-5b604eaeaba7d5ee5dd12a92f37c9e8e7519c9c2.tar.gz
nextcloud-server-5b604eaeaba7d5ee5dd12a92f37c9e8e7519c9c2.zip
Merge pull request #15040 from nextcloud/feature/13980/push-for-deleted-notifications
Notifications overhaul
Diffstat (limited to 'tests/lib/Notification/DummyApp.php')
-rw-r--r--tests/lib/Notification/DummyApp.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/lib/Notification/DummyApp.php b/tests/lib/Notification/DummyApp.php
new file mode 100644
index 00000000000..680fb44d009
--- /dev/null
+++ b/tests/lib/Notification/DummyApp.php
@@ -0,0 +1,56 @@
+<?php
+declare(strict_types=1);
+/**
+ * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace Test\Notification;
+
+
+use OCP\Notification\IApp;
+use OCP\Notification\INotification;
+
+class DummyApp implements IApp {
+
+ /**
+ * @param INotification $notification
+ * @throws \InvalidArgumentException When the notification is not valid
+ * @since 9.0.0
+ */
+ public function notify(INotification $notification): void {
+ // TODO: Implement notify() method.
+ }
+
+ /**
+ * @param INotification $notification
+ * @since 9.0.0
+ */
+ public function markProcessed(INotification $notification): void {
+ // TODO: Implement markProcessed() method.
+ }
+
+ /**
+ * @param INotification $notification
+ * @return int
+ * @since 9.0.0
+ */
+ public function getCount(INotification $notification): int {
+ // TODO: Implement getCount() method.
+ }
+}