mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-48517: behat: Fix reset ordering reversal (MDL-48302)
This commit is contained in:
parent
2d84748c26
commit
064b8b7fe3
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user