150
150
// Checking behat dataroot existence otherwise echo about admin/tool/behat/cli/init.php.
151
154
if (empty($CFG->behat_dataroot) || !is_dir($CFG->behat_dataroot) || !is_writable($CFG->behat_dataroot)) {
152
155
self::output_msg(get_string('runclitool', 'tool_behat', 'php admin/tool/behat/cli/init.php'));
153
156
return BEHAT_EXITCODE_CONFIG;