diff --git a/tests/lib/Files/Utils/ScannerTest.php b/tests/lib/Files/Utils/ScannerTest.php index bcc115c6caa7..a71005cdec3a 100644 --- a/tests/lib/Files/Utils/ScannerTest.php +++ b/tests/lib/Files/Utils/ScannerTest.php @@ -189,7 +189,9 @@ public function testPropagateEtag() { } public function testSkipLocalShares() { - $sharedStorage = $this->getMock('OCA\Files_Sharing\SharedStorage'); + $sharedStorage = $this->getMockBuilder('OC\Files\Storage\Shared') + ->disableOriginalConstructor() + ->getMock(); $sharedMount = new MountPoint($sharedStorage, '/share'); Filesystem::getMountManager()->addMount($sharedMount);