mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-48302 behat: Reset all data, before starting behat suite
This commit is contained in:
parent
97d0445a7b
commit
ab25d8a7f7
@ -123,6 +123,10 @@ class behat_hooks extends behat_base {
|
||||
throw new Exception('Behat only can run if test mode is enabled. More info in ' . behat_command::DOCS_URL . '#Running_tests');
|
||||
}
|
||||
|
||||
// Reset all data, before checking for is_server_running.
|
||||
// If not done, then it can return apache error, while running tests.
|
||||
behat_util::reset_all_data();
|
||||
|
||||
if (!behat_util::is_server_running()) {
|
||||
throw new Exception($CFG->behat_wwwroot .
|
||||
' is not available, ensure you specified correct url and that the server is set up and started.' .
|
||||
|
Loading…
x
Reference in New Issue
Block a user