ObjectStoreStoragesDifferentBucketTest.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace Test\Files\ObjectStore;
  8. use OC\Files\ObjectStore\StorageObjectStore;
  9. use OC\Files\Storage\Temporary;
  10. use Test\Files\Storage\StoragesTest;
  11. /**
  12. * @group DB
  13. */
  14. class ObjectStoreStoragesDifferentBucketTest extends StoragesTest {
  15. /**
  16. * @var \OCP\Files\ObjectStore\IObjectStore
  17. */
  18. private $objectStore1;
  19. /**
  20. * @var \OCP\Files\ObjectStore\IObjectStore
  21. */
  22. private $objectStore2;
  23. protected function setUp(): void {
  24. parent::setUp();
  25. $baseStorage1 = new Temporary();
  26. $this->objectStore1 = new StorageObjectStore($baseStorage1);
  27. $config['objectstore'] = $this->objectStore1;
  28. $this->storage1 = new ObjectStoreStorageOverwrite($config);
  29. $baseStorage2 = new Temporary();
  30. $this->objectStore2 = new StorageObjectStore($baseStorage2);
  31. $config['objectstore'] = $this->objectStore2;
  32. $this->storage2 = new ObjectStoreStorageOverwrite($config);
  33. }
  34. }