Added mode tests

This commit is contained in:
Michael 2020-11-07 10:45:38 +00:00
parent 8906615b2c
commit 2ba0d884a0

View file

@ -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()