Skip to content

Commit

Permalink
Merge branch 'mdl48517_28' of https://github.com/tlevi/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_28_STABLE
  • Loading branch information
Sam Hemelryk committed Dec 9, 2014
2 parents f071a17 + 13dfdb0 commit 41ea5af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/behat/classes/util.php
Expand Up @@ -294,6 +294,12 @@ protected final static function get_test_file_path() {
* Reset contents of all database tables to initial values, reset caches, etc.
*/
public static function reset_all_data() {
// Reset database.
self::reset_database();

// Purge dataroot directory.
self::reset_dataroot();

// Reset all static caches.
accesslib_clear_all_caches(true);
// Reset the nasty strings list used during the last test.
Expand All @@ -310,11 +316,5 @@ public static function reset_all_data() {

// Inform data generator.
self::get_data_generator()->reset();

// Purge dataroot directory.
self::reset_dataroot();

// Reset database.
self::reset_database();
}
}

0 comments on commit 41ea5af

Please sign in to comment.