diff options
author | provokateurin <kate@provokateurin.de> | 2024-10-08 15:13:16 +0200 |
---|---|---|
committer | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-10-23 13:24:18 +0200 |
commit | 0de4843b73ee4779c7e455dd80c36a6b506e0024 (patch) | |
tree | 67ad68f0b4c925a65b029bdfcaafe5681c527d3a /tests | |
parent | 74cd6e295a8e2e7c64e4fe38ba775986c57509a4 (diff) | |
download | nextcloud-server-0de4843b73ee4779c7e455dd80c36a6b506e0024.tar.gz nextcloud-server-0de4843b73ee4779c7e455dd80c36a6b506e0024.zip |
refactor(Storage): Align all Storage constructorsrefactor/storage/constructors
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Storage/LocalTest.php | 2 | ||||
-rw-r--r-- | tests/lib/Files/Storage/StorageFactoryTest.php | 8 | ||||
-rw-r--r-- | tests/lib/HelperStorageTest.php | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Files/Storage/LocalTest.php b/tests/lib/Files/Storage/LocalTest.php index 4a98970f233..43dfc1d1713 100644 --- a/tests/lib/Files/Storage/LocalTest.php +++ b/tests/lib/Files/Storage/LocalTest.php @@ -59,7 +59,7 @@ class LocalTest extends Storage { public function testInvalidArgumentsNoArray(): void { $this->expectException(\InvalidArgumentException::class); - new \OC\Files\Storage\Local(null); + new \OC\Files\Storage\Local([]); } diff --git a/tests/lib/Files/Storage/StorageFactoryTest.php b/tests/lib/Files/Storage/StorageFactoryTest.php index d1e8d927dc9..83e8a7bf6eb 100644 --- a/tests/lib/Files/Storage/StorageFactoryTest.php +++ b/tests/lib/Files/Storage/StorageFactoryTest.php @@ -16,10 +16,10 @@ use Test\TestCase; class DummyWrapper extends Wrapper { public $data; - public function __construct($arguments) { - parent::__construct($arguments); - if (isset($arguments['data'])) { - $this->data = $arguments['data']; + public function __construct(array $parameters) { + parent::__construct($parameters); + if (isset($parameters['data'])) { + $this->data = $parameters['data']; } } } diff --git a/tests/lib/HelperStorageTest.php b/tests/lib/HelperStorageTest.php index 4d5002de3ab..455bd288351 100644 --- a/tests/lib/HelperStorageTest.php +++ b/tests/lib/HelperStorageTest.php @@ -72,7 +72,7 @@ class HelperStorageTest extends \Test\TestCase { private function getStorageMock($freeSpace = 12) { $this->storageMock = $this->getMockBuilder(Temporary::class) ->setMethods(['free_space']) - ->setConstructorArgs(['']) + ->setConstructorArgs([[]]) ->getMock(); $this->storageMock->expects($this->once()) |