nextcloud/tests/lib/Files/ObjectStore/ObjectStoreStorageOverwrite.php
Ferdinand Thiessen e5b1799079
chore: add missing Override attribute to test files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:28 +02:00

30 lines
724 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace Test\Files\ObjectStore;
use OC\Files\ObjectStore\ObjectStoreStorage;
use OCP\Files\ObjectStore\IObjectStore;
/**
* Allow overwriting the object store instance for test purposes
*/
class ObjectStoreStorageOverwrite extends ObjectStoreStorage {
public function setObjectStore(IObjectStore $objectStore): void {
$this->objectStore = $objectStore;
}
#[\Override]
public function getObjectStore(): IObjectStore {
return $this->objectStore;
}
public function setValidateWrites(bool $validate): void {
$this->validateWrites = $validate;
}
}