diff --git a/tests/behat/behat_app.php b/tests/behat/behat_app.php index 7dc3920f6..ba732ee74 100644 --- a/tests/behat/behat_app.php +++ b/tests/behat/behat_app.php @@ -683,7 +683,7 @@ class behat_app extends behat_base { * @Given /^the app should( not)? have opened a browser tab$/ * @param bool $not */ - public function the_app_should_have_opened_a_browser_tab(bool $not) { + public function the_app_should_have_opened_a_browser_tab(bool $not = false) { $this->spin(function() use ($not) { $openedbrowsertab = count($this->getSession()->getWindowNames()) === 2;