From d69a6ad965edea5d1a035f6752822ab292ff2d7d Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 16 Oct 2014 11:08:46 +0100 Subject: [PATCH] MDL-47711 behat: make it easier to copy the init.php command. --- lib/tests/behat/behat_hooks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests/behat/behat_hooks.php b/lib/tests/behat/behat_hooks.php index 09e45f09701..8b5f7349033 100644 --- a/lib/tests/behat/behat_hooks.php +++ b/lib/tests/behat/behat_hooks.php @@ -132,7 +132,8 @@ class behat_hooks extends behat_base { // Prevents using outdated data, upgrade script would start and tests would fail. if (!behat_util::is_test_data_updated()) { $commandpath = 'php admin/tool/behat/cli/init.php'; - throw new Exception('Your behat test site is outdated, please run ' . $commandpath . ' from your moodle dirroot to drop and install the behat test site again.'); + throw new Exception("Your behat test site is outdated, please run\n\n " . + $commandpath . "\n\nfrom your moodle dirroot to drop and install the behat test site again."); } // Avoid parallel tests execution, it continues when the previous lock is released. test_lock::acquire('behat');