diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 21:32:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:52 +0200 |
commit | 31532ecf131f7e598fe1d8bd80b9ea3b48fd0577 (patch) | |
tree | 8501fc6eb078c4309298939f7b8dcf17935cc6ae | |
parent | 5069b74f8b188c91767c003d19269497a1fe1f07 (diff) | |
download | nextcloud-server-31532ecf131f7e598fe1d8bd80b9ea3b48fd0577.tar.gz nextcloud-server-31532ecf131f7e598fe1d8bd80b9ea3b48fd0577.zip |
Fix getMock ViewTest
-rw-r--r-- | tests/lib/Files/ViewTest.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php index 72a91614100..b0233116ed5 100644 --- a/tests/lib/Files/ViewTest.php +++ b/tests/lib/Files/ViewTest.php @@ -12,8 +12,10 @@ use OC\Files\Cache\Watcher; use OC\Files\Storage\Common; use OC\Files\Mount\MountPoint; use OC\Files\Storage\Temporary; +use OCP\Files\Config\IMountProvider; use OCP\Files\FileInfo; use OCP\Lock\ILockingProvider; +use Test\TestMoveableMountPoint; class TemporaryNoTouch extends \OC\Files\Storage\Temporary { public function touch($path, $mtime = null) { @@ -1529,14 +1531,13 @@ class ViewTest extends \Test\TestCase { ->setMethods([]) ->getMock(); - $mounts[] = $this->getMock( - '\Test\TestMoveableMountPoint', - ['moveMount'], - [$storage, $mountPoint] - ); + $mounts[] = $this->getMockBuilder(TestMoveableMountPoint::class) + ->setMethods(['moveMount']) + ->setConstructorArgs([$storage, $mountPoint]) + ->getMock(); } - $mountProvider = $this->getMock('\OCP\Files\Config\IMountProvider'); + $mountProvider = $this->createMock(IMountProvider::class); $mountProvider->expects($this->any()) ->method('getMountsForUser') ->will($this->returnValue($mounts)); |