nextcloud/tests/lib/Files/ObjectStore/SwiftTest.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

35 lines
924 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace Test\Files\ObjectStore;
use OC\Files\ObjectStore\Swift;
use OCP\Files\ObjectStore\IObjectStore;
use OCP\IConfig;
use OCP\Server;
#[\PHPUnit\Framework\Attributes\Group('PRIMARY-swift')]
class SwiftTest extends ObjectStoreTestCase {
/**
* @return IObjectStore
*/
#[\Override]
protected function getInstance() {
$config = Server::get(IConfig::class)->getSystemValue('objectstore');
if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\Swift') {
$this->markTestSkipped('objectstore not configured for swift');
}
return new Swift($config['arguments']);
}
#[\Override]
public function testFseekSize(): void {
$this->markTestSkipped('Swift does not support seeking at the moment');
}
}