mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-48517: behat: Fix reset ordering reversal (MDL-48302)
This commit is contained in:
parent
2d84748c26
commit
064b8b7fe3
1 changed files with 6 additions and 6 deletions
|
@ -294,6 +294,12 @@ class behat_util extends testing_util {
|
||||||
* Reset contents of all database tables to initial values, reset caches, etc.
|
* Reset contents of all database tables to initial values, reset caches, etc.
|
||||||
*/
|
*/
|
||||||
public static function reset_all_data() {
|
public static function reset_all_data() {
|
||||||
|
// Reset database.
|
||||||
|
self::reset_database();
|
||||||
|
|
||||||
|
// Purge dataroot directory.
|
||||||
|
self::reset_dataroot();
|
||||||
|
|
||||||
// Reset all static caches.
|
// Reset all static caches.
|
||||||
accesslib_clear_all_caches(true);
|
accesslib_clear_all_caches(true);
|
||||||
// Reset the nasty strings list used during the last test.
|
// Reset the nasty strings list used during the last test.
|
||||||
|
@ -310,11 +316,5 @@ class behat_util extends testing_util {
|
||||||
|
|
||||||
// Inform data generator.
|
// Inform data generator.
|
||||||
self::get_data_generator()->reset();
|
self::get_data_generator()->reset();
|
||||||
|
|
||||||
// Purge dataroot directory.
|
|
||||||
self::reset_dataroot();
|
|
||||||
|
|
||||||
// Reset database.
|
|
||||||
self::reset_database();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue