mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 20:12:15 +02:00
Merge branch 'mdl48517' of https://github.com/tlevi/moodle
This commit is contained in:
commit
255501c900
@ -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