MDL-43213 try to simplify behat config and init code
commit60129d5d1faff87c89c4b00aa8bf2c87ef2c3b5a
authorPetr Škoda <commits@skodak.org>
Wed, 4 Dec 2013 09:09:41 +0000 (4 17:09 +0800)
committerPetr Škoda <commits@skodak.org>
Fri, 13 Dec 2013 06:03:04 +0000 (13 14:03 +0800)
treee30258c78febb5848bfa14752a583bdb212bdec6
parent2f4e0db7c3877a65142e93ee12a49be4f166e4f6
MDL-43213 try to simplify behat config and init code

1/ always require 3 behat settings - $CFG->behat_wwwroot, $CFG->behat_dataroot and $CFG->behat_prefix
2/ cleanup init code
3/ do not require $CFG->wwwroot and $CFG->dataroot on test sites
4/ remove switch completely - the most confusing part for me
5/ print out behat_wwwwroot in init script so that you can test the test site manually
admin/tool/behat/cli/util.php
admin/tool/behat/tests/manager_test.php [moved from admin/tool/behat/tests/tool_behat_test.php with 95% similarity]
config-dist.php
lib/behat/classes/behat_command.php
lib/behat/classes/util.php
lib/behat/lib.php
lib/moodlelib.php
lib/setup.php
lib/tests/behat/behat_hooks.php