From 99e0867f0aaa81ebeae43deaa8ea389419dd9aaa Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 9 Dec 2024 17:09:55 +0100 Subject: chore: Adapt tests to added constructor parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- .../Controller/ClientFlowLoginControllerTest.php | 54 ++++++++++------------ tests/lib/Config/UserConfigTest.php | 6 +-- 2 files changed, 27 insertions(+), 33 deletions(-) (limited to 'tests') diff --git a/tests/Core/Controller/ClientFlowLoginControllerTest.php b/tests/Core/Controller/ClientFlowLoginControllerTest.php index 7f9f11db7e3..3a7acd3afeb 100644 --- a/tests/Core/Controller/ClientFlowLoginControllerTest.php +++ b/tests/Core/Controller/ClientFlowLoginControllerTest.php @@ -1,4 +1,7 @@ crypto = $this->createMock(ICrypto::class); $this->eventDispatcher = $this->createMock(IEventDispatcher::class); $this->timeFactory = $this->createMock(ITimeFactory::class); + $this->appConfig = $this->createMock(IAppConfig::class); $this->clientFlowLoginController = new ClientFlowLoginController( 'core', @@ -98,7 +91,8 @@ class ClientFlowLoginControllerTest extends TestCase { $this->accessTokenMapper, $this->crypto, $this->eventDispatcher, - $this->timeFactory + $this->timeFactory, + $this->appConfig, ); } diff --git a/tests/lib/Config/UserConfigTest.php b/tests/lib/Config/UserConfigTest.php index e727116d9a8..0f2aed4a288 100644 --- a/tests/lib/Config/UserConfigTest.php +++ b/tests/lib/Config/UserConfigTest.php @@ -746,9 +746,9 @@ class UserConfigTest extends TestCase { public function testSearchValuesByUsers( string $app, string $key, - ?ValueType $typedAs = null, - ?array $userIds = null, - array $result = [], + ?ValueType $typedAs, + ?array $userIds, + array $result, ): void { $userConfig = $this->generateUserConfig(); $this->assertEqualsCanonicalizing( -- cgit v1.2.3