mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
40 lines
987 B
PHP
40 lines
987 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 Test\Files\Storage\StoragesTest;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @group DB
|
||
|
|
*/
|
||
|
|
class ObjectStoreStoragesDifferentBucketTest extends StoragesTest {
|
||
|
|
/**
|
||
|
|
* @var \OCP\Files\ObjectStore\IObjectStore
|
||
|
|
*/
|
||
|
|
private $objectStore1;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var \OCP\Files\ObjectStore\IObjectStore
|
||
|
|
*/
|
||
|
|
private $objectStore2;
|
||
|
|
|
||
|
|
protected function setUp(): void {
|
||
|
|
parent::setUp();
|
||
|
|
|
||
|
|
$baseStorage1 = new Temporary();
|
||
|
|
$this->objectStore1 = new StorageObjectStore($baseStorage1);
|
||
|
|
$config['objectstore'] = $this->objectStore1;
|
||
|
|
$this->storage1 = new ObjectStoreStorageOverwrite($config);
|
||
|
|
|
||
|
|
$baseStorage2 = new Temporary();
|
||
|
|
$this->objectStore2 = new StorageObjectStore($baseStorage2);
|
||
|
|
$config['objectstore'] = $this->objectStore2;
|
||
|
|
$this->storage2 = new ObjectStoreStorageOverwrite($config);
|
||
|
|
}
|
||
|
|
}
|