diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-05-28 10:49:42 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-07-05 13:01:31 +0300 |
commit | 15cf02a7841ef5d65a12dbb2bcc6b3c490f95abb (patch) | |
tree | f2dd31c2a258a1437cbb9b4a0dba9eae0f7eeb69 /tests | |
parent | 4a28b8e525db88d5c59e8d543e7ac1d0521bebd8 (diff) |
Run s3 tests again
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/ObjectStore/S3Test.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/lib/Files/ObjectStore/S3Test.php b/tests/lib/Files/ObjectStore/S3Test.php index c1e7948e3c4..07d3e2f7d79 100644 --- a/tests/lib/Files/ObjectStore/S3Test.php +++ b/tests/lib/Files/ObjectStore/S3Test.php @@ -62,7 +62,7 @@ class NonSeekableStream extends Wrapper { class S3Test extends ObjectStoreTest { protected function getInstance() { $config = \OC::$server->getConfig()->getSystemValue('objectstore'); - if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\S3') { + if (!is_array($config) || $config['class'] !== S3::class) { $this->markTestSkipped('objectstore not configured for s3'); } @@ -70,11 +70,6 @@ class S3Test extends ObjectStoreTest { } public function testUploadNonSeekable() { - $config = \OC::$server->getConfig()->getSystemValue('objectstore'); - if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\S3') { - $this->markTestSkipped('objectstore not configured for s3'); - } - $s3 = $this->getInstance(); $s3->writeObject('multiparttest', NonSeekableStream::wrap(fopen(__FILE__, 'r'))); |