diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 20:57:45 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:52 +0200 |
commit | 77779d678f6efd5c1679348d72ad23aa75b61c56 (patch) | |
tree | 6aa5dcc053fe6478615ba7bc5a500a6aff3c7a19 /tests | |
parent | c4ef825cebbbb04cee87b852f6ae5fb293e0a8df (diff) | |
download | nextcloud-server-77779d678f6efd5c1679348d72ad23aa75b61c56.tar.gz nextcloud-server-77779d678f6efd5c1679348d72ad23aa75b61c56.zip |
Fix getMock FileCacheTest
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Cache/FileCacheTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php index d2725bf9033..a90fc6678e9 100644 --- a/tests/lib/Cache/FileCacheTest.php +++ b/tests/lib/Cache/FileCacheTest.php @@ -21,6 +21,7 @@ */ namespace Test\Cache; +use OC\Files\Storage\Local; /** * Class FileCacheTest @@ -102,11 +103,10 @@ class FileCacheTest extends TestCache { } private function setupMockStorage() { - $mockStorage = $this->getMock( - '\OC\Files\Storage\Local', - ['filemtime', 'unlink'], - [['datadir' => \OC::$server->getTempManager()->getTemporaryFolder()]] - ); + $mockStorage = $this->getMockBuilder(Local::class) + ->setMethods(['filemtime', 'unlink']) + ->setConstructorArgs([['datadir' => \OC::$server->getTempManager()->getTemporaryFolder()]]) + ->getMock(); \OC\Files\Filesystem::mount($mockStorage, array(), '/test/cache'); |