0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-01-30 22:37:01 +00:00
nextcloud_server/apps/files_external/tests/Storage/VersionedAmazonS3Test.php
Andy Scherzinger c1555fc33e
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-06 18:05:37 +02:00

28 lines
636 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Files_External\Tests\Storage;
/**
* @group DB
*/
class VersionedAmazonS3Test extends Amazons3Test {
protected function setUp(): void {
parent::setUp();
try {
$this->instance->getConnection()->putBucketVersioning([
'Bucket' => $this->instance->getBucket(),
'VersioningConfiguration' => [
'Status' => 'Enabled',
],
]);
} catch (\Exception $e) {
$this->markTestSkipped("s3 backend doesn't seem to support versioning");
}
}
}