Added mode tests
This commit is contained in:
parent
8906615b2c
commit
2ba0d884a0
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue