From 67ecd729727965ae3ac93b78ed9d8a9631b82d3e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 31 Aug 2022 20:54:39 +0200 Subject: [PATCH] Fix unit tests Signed-off-by: Joas Schilling --- tests/Core/Controller/LoginControllerTest.php | 2 +- tests/lib/Notification/ManagerTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php index cee3da6599449..b80fde008d557 100644 --- a/tests/Core/Controller/LoginControllerTest.php +++ b/tests/Core/Controller/LoginControllerTest.php @@ -260,7 +260,7 @@ public function testShowLoginFormWithErrorsInSession() { [ 'MessageArray1', 'MessageArray2', - 'This community release of Nextcloud is unsupported and instant notifications are unavailable.', + 'This community release of Nextcloud is unsupported and push notifications are limited.', ] ); $this->initialStateService->expects($this->at(1)) diff --git a/tests/lib/Notification/ManagerTest.php b/tests/lib/Notification/ManagerTest.php index 6cdd254f0017e..e482ba3876bea 100644 --- a/tests/lib/Notification/ManagerTest.php +++ b/tests/lib/Notification/ManagerTest.php @@ -248,10 +248,10 @@ public function testGetCount(): void { public function dataIsFairUseOfFreePushService(): array { return [ - [true, 4999, true], - [true, 5000, true], - [false, 4999, true], - [false, 5000, false], + [true, 499, true], + [true, 500, true], + [false, 499, true], + [false, 500, false], ]; }