2015-06-19 07:54:00 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2015-06-19 07:54:00 -04:00
|
|
|
/**
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-06-19 07:54:00 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Test;
|
|
|
|
|
|
2025-06-12 12:31:58 -04:00
|
|
|
use OC\Files\Mount\MountPoint;
|
2026-04-01 08:18:03 -04:00
|
|
|
use OCP\Files\Mount\IMovableMount;
|
|
|
|
|
use Override;
|
2015-06-19 07:54:00 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Test moveable mount for mocking
|
|
|
|
|
*/
|
2026-04-01 08:18:03 -04:00
|
|
|
class TestMoveableMountPoint extends MountPoint implements IMovableMount {
|
|
|
|
|
#[Override]
|
|
|
|
|
public function moveMount(string $target): bool {
|
2015-06-19 07:54:00 -04:00
|
|
|
$this->setMountPoint($target);
|
2026-04-01 08:18:03 -04:00
|
|
|
return true;
|
2015-06-19 07:54:00 -04:00
|
|
|
}
|
|
|
|
|
|
2026-04-01 08:18:03 -04:00
|
|
|
#[Override]
|
|
|
|
|
public function removeMount(): bool {
|
|
|
|
|
return false;
|
2015-06-19 07:54:00 -04:00
|
|
|
}
|
|
|
|
|
}
|