MoveFromCacheTraitTest.php 763 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-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\Cache;
  8. use OC\Files\Cache\MoveFromCacheTrait;
  9. class FallBackCrossCacheMoveCache extends \OC\Files\Cache\Cache {
  10. use MoveFromCacheTrait;
  11. }
  12. /**
  13. * Class MoveFromCacheTraitTest
  14. *
  15. * @group DB
  16. */
  17. class MoveFromCacheTraitTest extends CacheTest {
  18. protected function setUp(): void {
  19. parent::setUp();
  20. $this->storage = new \OC\Files\Storage\Temporary([]);
  21. $this->storage2 = new \OC\Files\Storage\Temporary([]);
  22. $this->cache = new FallBackCrossCacheMoveCache($this->storage);
  23. $this->cache2 = new FallBackCrossCacheMoveCache($this->storage2);
  24. }
  25. }