From b7804052a836c851d6c5593cbb7a12ffa6033532 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 13 Feb 2019 13:55:34 +0800 Subject: [PATCH] MDL-63977 Behat: Prefer ionic approot over wwwroot --- behat_app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behat_app.php b/behat_app.php index f84b356ee..b2251c34b 100644 --- a/behat_app.php +++ b/behat_app.php @@ -176,7 +176,7 @@ class behat_app extends behat_base { protected function start_or_reuse_ionic() { global $CFG; - if (!empty($CFG->behat_ionic_wwwroot)) { + if (empty($CFG->behat_ionic_dirroot) && !empty($CFG->behat_ionic_wwwroot)) { // Use supplied Ionic server which should already be running. $url = $CFG->behat_ionic_wwwroot; } else if (self::$ionicrunning) {