From 2ba0d884a0a45a9bdb88db05faa90e849a0f970c Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Nov 2020 10:45:38 +0000 Subject: [PATCH] Added mode tests --- tests/functional/DependencyCheckTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/functional/DependencyCheckTest.php b/tests/functional/DependencyCheckTest.php index 1d98a1824..00b8afbff 100644 --- a/tests/functional/DependencyCheckTest.php +++ b/tests/functional/DependencyCheckTest.php @@ -131,7 +131,12 @@ class DependencyCheckTest extends TestCase self::assertInstanceOf(App\Mode::class, $mode); - self::assertTrue($mode->isNormal()); + self::assertTrue($mode->has((App\Mode::LOCALCONFIGPRESENT), 'No local config present'); + self::assertTrue($mode->has((App\Mode::DBAVAILABLE), 'Database is not available'); + self::assertTrue($mode->has((App\Mode::DBCONFIGAVAILABLE), 'Database config is not available'); + self::assertTrue($mode->has((App\Mode::MAINTENANCEDISABLED), 'In maintenance mode'); + + self::assertTrue($mode->isNormal(), 'Not in normal mode'); } public function testConfiguration()