blob: a0e18a5557b65578e8013bf8c70db3773a86da3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?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\StorageObjectStore;
use OC\Files\Storage\Temporary;
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);
}
}
|