aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Authentication/Events/RemoteWipeFinishedTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Authentication/Events/RemoteWipeFinishedTest.php')
-rw-r--r--tests/lib/Authentication/Events/RemoteWipeFinishedTest.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/lib/Authentication/Events/RemoteWipeFinishedTest.php b/tests/lib/Authentication/Events/RemoteWipeFinishedTest.php
new file mode 100644
index 00000000000..c89b1e4108f
--- /dev/null
+++ b/tests/lib/Authentication/Events/RemoteWipeFinishedTest.php
@@ -0,0 +1,23 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace Test\Authentication\Events;
+
+use OC\Authentication\Events\RemoteWipeFinished;
+use OC\Authentication\Token\IToken;
+use Test\TestCase;
+
+class RemoteWipeFinishedTest extends TestCase {
+ public function testGetToken(): void {
+ $token = $this->createMock(IToken::class);
+ $event = new RemoteWipeFinished($token);
+
+ $this->assertSame($token, $event->getToken());
+ }
+}