Skip to content

Commit

Permalink
Adapt tests to severity change
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored and backportbot-nextcloud[bot] committed Dec 7, 2023
1 parent ef7bb43 commit ffc782a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/SetupChecks/LogErrorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public function logProvider(): array {
$tooOld = (new \DateTime('1 month ago'))->format(\DateTime::ATOM);
return [
[[], 'success'],
[[['level' => 2, 'time' => $now]], 'warning'],
[[['level' => 3, 'time' => $now]], 'error'],
[[['level' => 2, 'time' => $now],['level' => 3, 'time' => $now]], 'error'],
[[['level' => 2, 'time' => $now],['level' => 3, 'time' => $tooOld]], 'warning'],
[[['level' => 2, 'time' => $now]], 'info'],
[[['level' => 3, 'time' => $now]], 'warning'],
[[['level' => 2, 'time' => $now],['level' => 3, 'time' => $now]], 'warning'],
[[['level' => 2, 'time' => $now],['level' => 3, 'time' => $tooOld]], 'info'],
[[['level' => 2, 'time' => $tooOld],['level' => 3, 'time' => $tooOld]], 'success'],
];
}
Expand Down

0 comments on commit ffc782a

Please sign in to comment.