From 14d975ccc6513e43077b498b4951e1c9eeb5dae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 14 Aug 2023 17:44:07 +0200 Subject: [PATCH] fixup! fixup! Fix various deprecation warnings in tests on PHP 8.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/lib/App/AppManagerTest.php | 2 +- tests/lib/TextProcessing/TextProcessingTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php index bb8c75c99eea6..3bf2195499f85 100644 --- a/tests/lib/App/AppManagerTest.php +++ b/tests/lib/App/AppManagerTest.php @@ -644,7 +644,7 @@ public function testGetDefaultAppForUser($defaultApps, $expectedApp) { $this->config->expects($this->once()) ->method('getUserValue') - ->with('core', 'defaultapp') + ->with('user1', 'core', 'defaultapp') ->willReturn(''); $this->assertEquals($expectedApp, $this->manager->getDefaultAppForUser()); diff --git a/tests/lib/TextProcessing/TextProcessingTest.php b/tests/lib/TextProcessing/TextProcessingTest.php index f0a010e29b50a..15f36cb2452cc 100644 --- a/tests/lib/TextProcessing/TextProcessingTest.php +++ b/tests/lib/TextProcessing/TextProcessingTest.php @@ -93,7 +93,7 @@ class TextProcessingTest extends \Test\TestCase { private Coordinator $coordinator; private array $providers; private IServerContainer $serverContainer; - private EventDispatcher $eventDispatcher; + private IEventDispatcher $eventDispatcher; private RegistrationContext $registrationContext; private \DateTimeImmutable $currentTime; private TaskMapper $taskMapper;