Skip to content

Commit

Permalink
MDL-48517: behat: Fix reset ordering reversal (MDL-48302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Levi committed Dec 8, 2014
1 parent ae2a9c0 commit 13dfdb0
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 13dfdb0

Please sign in to comment.