From b882f65fbb408aaf820bdd37420efb1dcbbfaba3 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 11 Apr 2017 01:30:32 +0200 Subject: Add integration tests Signed-off-by: Lukas Reschke --- .../integration/features/bootstrap/CommandLineContext.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build/integration/features/bootstrap/CommandLineContext.php') 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(); -- cgit v1.2.3