2016-01-27 17:45:19 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2016 Robin Appelman <icewind@owncloud.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Test\Files\Cache;
|
|
|
|
|
|
|
|
use OC\Files\Cache\MoveFromCacheTrait;
|
|
|
|
|
|
|
|
class FallBackCrossCacheMoveCache extends \OC\Files\Cache\Cache {
|
|
|
|
use MoveFromCacheTrait;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-05-20 16:38:20 +03:00
|
|
|
* Class MoveFromCacheTraitTest
|
2016-01-27 17:45:19 +03:00
|
|
|
*
|
|
|
|
* @group DB
|
|
|
|
*/
|
2016-05-20 16:38:20 +03:00
|
|
|
class MoveFromCacheTraitTest extends CacheTest {
|
2019-11-21 18:40:38 +03:00
|
|
|
protected function setUp(): void {
|
2016-01-27 17:45:19 +03:00
|
|
|
parent::setUp();
|
|
|
|
|
2020-03-26 11:30:18 +03:00
|
|
|
$this->storage = new \OC\Files\Storage\Temporary([]);
|
|
|
|
$this->storage2 = new \OC\Files\Storage\Temporary([]);
|
2016-01-27 17:45:19 +03:00
|
|
|
$this->cache = new FallBackCrossCacheMoveCache($this->storage);
|
|
|
|
$this->cache2 = new FallBackCrossCacheMoveCache($this->storage2);
|
|
|
|
}
|
|
|
|
}
|