aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests/Command/ExpireTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/tests/Command/ExpireTest.php')
-rw-r--r--apps/files_versions/tests/Command/ExpireTest.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/files_versions/tests/Command/ExpireTest.php b/apps/files_versions/tests/Command/ExpireTest.php
new file mode 100644
index 00000000000..b74457a7fd6
--- /dev/null
+++ b/apps/files_versions/tests/Command/ExpireTest.php
@@ -0,0 +1,28 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+namespace OCA\Files_Versions\Tests\Command;
+
+use OCA\Files_Versions\Command\Expire;
+use Test\TestCase;
+
+/**
+ * Class ExpireTest
+ *
+ * @group DB
+ *
+ * @package OCA\Files_Versions\Tests\Command
+ */
+class ExpireTest extends TestCase {
+ public function testExpireNonExistingUser(): void {
+ $command = new Expire($this->getUniqueID('test'), '');
+ $command->handle();
+
+ $this->addToAssertionCount(1);
+ }
+}