diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-19 18:19:16 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-26 17:29:48 +0200 |
commit | 256a8d8903ef3a81a425f417c0eb626f42036a25 (patch) | |
tree | 23c80da6d9642671840607e147417acabdb9574c /apps | |
parent | 1302b48ca24419649cebd8bfa0810f9517a55484 (diff) | |
download | nextcloud-server-256a8d8903ef3a81a425f417c0eb626f42036a25.tar.gz nextcloud-server-256a8d8903ef3a81a425f417c0eb626f42036a25.zip |
test: Fix IStorage return types
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 4 | ||||
-rw-r--r-- | apps/workflowengine/tests/Check/FileMimeTypeTest.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php index fb180b7c65d..2e19aec95e8 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php @@ -283,8 +283,8 @@ class DirectoryTest extends \Test\TestCase { $storage->expects($this->any()) ->method('instanceOfStorage') ->willReturnMap([ - '\OCA\Files_Sharing\SharedStorage' => false, - '\OC\Files\Storage\Wrapper\Quota' => false, + ['\OCA\Files_Sharing\SharedStorage', false], + ['\OC\Files\Storage\Wrapper\Quota', false], ]); $storage->expects($this->once()) diff --git a/apps/workflowengine/tests/Check/FileMimeTypeTest.php b/apps/workflowengine/tests/Check/FileMimeTypeTest.php index 1fc5118c5c4..0911a47f894 100644 --- a/apps/workflowengine/tests/Check/FileMimeTypeTest.php +++ b/apps/workflowengine/tests/Check/FileMimeTypeTest.php @@ -16,7 +16,7 @@ use OCP\IRequest; use Test\TestCase; class TemporaryNoLocal extends Temporary { - public function instanceOfStorage($className) { + public function instanceOfStorage($className): bool { if ($className === '\OC\Files\Storage\Local') { return false; } else { |