aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/TestMoveableMountPoint.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/TestMoveableMountPoint.php')
-rw-r--r--tests/lib/TestMoveableMountPoint.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/lib/TestMoveableMountPoint.php b/tests/lib/TestMoveableMountPoint.php
new file mode 100644
index 00000000000..5906a90ee18
--- /dev/null
+++ b/tests/lib/TestMoveableMountPoint.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+namespace Test;
+
+use OC\Files\Mount;
+use OC\Files\Mount\MountPoint;
+use OC\Files\Mount\MoveableMount;
+
+/**
+ * Test moveable mount for mocking
+ */
+class TestMoveableMountPoint extends MountPoint implements MoveableMount {
+ /**
+ * Move the mount point to $target
+ *
+ * @param string $target the target mount point
+ * @return bool
+ */
+ public function moveMount($target) {
+ $this->setMountPoint($target);
+ }
+
+ /**
+ * Remove the mount points
+ *
+ * @return mixed
+ * @return bool
+ */
+ public function removeMount() {
+ }
+}