Fix getMock FileCacheTest
This commit is contained in:
parent
c4ef825ceb
commit
77779d678f
|
@ -21,6 +21,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Test\Cache;
|
namespace Test\Cache;
|
||||||
|
use OC\Files\Storage\Local;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FileCacheTest
|
* Class FileCacheTest
|
||||||
|
@ -102,11 +103,10 @@ class FileCacheTest extends TestCache {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setupMockStorage() {
|
private function setupMockStorage() {
|
||||||
$mockStorage = $this->getMock(
|
$mockStorage = $this->getMockBuilder(Local::class)
|
||||||
'\OC\Files\Storage\Local',
|
->setMethods(['filemtime', 'unlink'])
|
||||||
['filemtime', 'unlink'],
|
->setConstructorArgs([['datadir' => \OC::$server->getTempManager()->getTemporaryFolder()]])
|
||||||
[['datadir' => \OC::$server->getTempManager()->getTemporaryFolder()]]
|
->getMock();
|
||||||
);
|
|
||||||
|
|
||||||
\OC\Files\Filesystem::mount($mockStorage, array(), '/test/cache');
|
\OC\Files\Filesystem::mount($mockStorage, array(), '/test/cache');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue