MoveFromCacheTraitTest.php 775 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright (c) 2016 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace Test\Files\Cache;
  9. use OC\Files\Cache\MoveFromCacheTrait;
  10. class FallBackCrossCacheMoveCache extends \OC\Files\Cache\Cache {
  11. use MoveFromCacheTrait;
  12. }
  13. /**
  14. * Class MoveFromCacheTraitTest
  15. *
  16. * @group DB
  17. */
  18. class MoveFromCacheTraitTest extends CacheTest {
  19. protected function setUp() {
  20. parent::setUp();
  21. $this->storage = new \OC\Files\Storage\Temporary(array());
  22. $this->storage2 = new \OC\Files\Storage\Temporary(array());
  23. $this->cache = new FallBackCrossCacheMoveCache($this->storage);
  24. $this->cache2 = new FallBackCrossCacheMoveCache($this->storage2);
  25. }
  26. }