diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-11 01:30:32 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-04-11 01:39:54 +0200 |
commit | b882f65fbb408aaf820bdd37420efb1dcbbfaba3 (patch) | |
tree | 7a1d60fbf1624e96739291aab06863333bc0b720 /build/integration/features/bootstrap/CommandLineContext.php | |
parent | aacbb560ae5bbae3541e901915937cc3384353ef (diff) | |
download | nextcloud-server-b882f65fbb408aaf820bdd37420efb1dcbbfaba3.tar.gz nextcloud-server-b882f65fbb408aaf820bdd37420efb1dcbbfaba3.zip |
Add integration tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'build/integration/features/bootstrap/CommandLineContext.php')
-rw-r--r-- | build/integration/features/bootstrap/CommandLineContext.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/CommandLineContext.php b/build/integration/features/bootstrap/CommandLineContext.php index c8253966cdb..9a48c8517c7 100644 --- a/build/integration/features/bootstrap/CommandLineContext.php +++ b/build/integration/features/bootstrap/CommandLineContext.php @@ -36,6 +36,20 @@ class CommandLineContext implements \Behat\Behat\Context\Context { $this->remoteBaseUrl = $baseUrl; } + /** + * @Given Maintenance mode is enabled + */ + public function maintenanceModeIsEnabled() { + $this->runOcc(['maintenance:mode', '--on']); + } + + /** + * @Then Maintenance mode is disabled + */ + public function maintenanceModeIsDisabled() { + $this->runOcc(['maintenance:mode', '--off']); + } + /** @BeforeScenario */ public function gatherContexts(BeforeScenarioScope $scope) { $environment = $scope->getEnvironment(); |