| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Utils for behat-related stuff
| Copyright: | 2012 David Monllaó |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 346 lines (11 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 5 files lib/behat/classes/behat_config_manager.php lib/behat/lib.php lib/testing/classes/util.php lib/filelib.php lib/behat/classes/behat_command.php |
behat_util:: (10 methods):
install_site()
drop_site()
check_server_status()
test_environment_problem()
start_test_mode()
get_behat_status()
stop_test_mode()
is_test_mode_enabled()
get_test_file_path()
reset_all_data()
Class: behat_util - X-Ref
Init/reset utilities for Behat database and dataroot| install_site() X-Ref |
| Installs a site using $CFG->dataroot and $CFG->prefix return: void |
| drop_site() X-Ref |
| Drops dataroot and remove test database tables return: void |
| check_server_status() X-Ref |
| Checks if $CFG->behat_wwwroot is available and using same versions for cli and web. return: void |
| test_environment_problem() X-Ref |
| Checks whether the test database and dataroot is ready Stops execution if something went wrong return: void |
| start_test_mode() X-Ref |
| Enables test mode It uses CFG->behat_dataroot Starts the test mode checking the composer installation and the test environment and updating the available features and steps definitions. Stores a file in dataroot/behat to allow Moodle to switch to the test environment when using cli-server. return: void |
| get_behat_status() X-Ref |
| Returns the status of the behat test environment return: int Error code |
| stop_test_mode() X-Ref |
| Disables test mode return: void |
| is_test_mode_enabled() X-Ref |
| Checks whether test environment is enabled or disabled To check is the current script is running in the test environment return: bool |
| get_test_file_path() X-Ref |
| Returns the path to the file which specifies if test environment is enabled return: string |
| reset_all_data() X-Ref |
| Reset contents of all database tables to initial values, reset caches, etc. |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |