diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-03 14:49:56 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-04 12:49:42 +0300 |
commit | 7b9ca4f7c245c6a6e0db1e0da2e75119011be245 (patch) | |
tree | a06c74460cecf10eb92631cb82794e71d8fa0bb3 /tests/lib/Files | |
parent | 9b573c6bd5df281833f455c9770826bc74283d5d (diff) |
Add some typing to SharedStorage
Makes psalm a bit more happy.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Files')
-rw-r--r-- | tests/lib/Files/Utils/ScannerTest.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/lib/Files/Utils/ScannerTest.php b/tests/lib/Files/Utils/ScannerTest.php index 376e72e6811..abd72416ffd 100644 --- a/tests/lib/Files/Utils/ScannerTest.php +++ b/tests/lib/Files/Utils/ScannerTest.php @@ -197,11 +197,10 @@ class ScannerTest extends \Test\TestCase { $sharedMount = new MountPoint($sharedStorage, '/share'); Filesystem::getMountManager()->addMount($sharedMount); - $sharedStorage->expects($this->any()) - ->method('instanceOfStorage') - ->willReturnMap([ - [SharedStorage::class, true], - ]); + $sharedStorage->method('instanceOfStorage') + ->willReturnCallback(function (string $c) { + return $c === SharedStorage::class; + }); $sharedStorage->expects($this->never()) ->method('getScanner'); |