summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/CommandLineContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/features/bootstrap/CommandLineContext.php')
-rw-r--r--build/integration/features/bootstrap/CommandLineContext.php14
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();