MDL-48517: behat: Fix reset ordering reversal (MDL-48302)

This commit is contained in:
Tony Levi 2014-12-07 23:21:22 +10:30
parent 2d84748c26
commit 064b8b7fe3

View File

@ -294,6 +294,12 @@ class behat_util extends testing_util {
* 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.
@ -310,11 +316,5 @@ class behat_util extends testing_util {
// Inform data generator.
self::get_data_generator()->reset();
// Purge dataroot directory.
self::reset_dataroot();
// Reset database.
self::reset_database();
}
}