diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-10-28 10:19:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 10:19:41 +0100 |
commit | 5efb175665a71ac32fb6a6d5a141c72d12e8534c (patch) | |
tree | f27662fc76503cce1e1b0fc551db3b125396ecd7 /tests | |
parent | 2eaa9f79b4fbc76b062d9f2bd1f5cfffb2143f57 (diff) | |
parent | 0de4843b73ee4779c7e455dd80c36a6b506e0024 (diff) | |
download | nextcloud-server-5efb175665a71ac32fb6a6d5a141c72d12e8534c.tar.gz nextcloud-server-5efb175665a71ac32fb6a6d5a141c72d12e8534c.zip |
Merge pull request #48614 from nextcloud/refactor/storage/constructors
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()) |