Commit dc1af5e2 authored by Dries's avatar Dries
Browse files

- Patch #321161 by Damien Tournoud: properly flush cache between tests.

parent 9a0618b9
......@@ -770,8 +770,10 @@ function tearDown() {
// Ensure that the internal logged in variable is reset.
$this->_logged_in = FALSE;
// Reload module list to ensure that test module hooks aren't called after tests.
// Reload module list and implementations to ensure that test module hooks
// aren't called after tests.
module_list(TRUE);
module_implements(MODULE_IMPLEMENTS_CLEAR_CACHE);
// Rebuild caches.
$this->refreshVariables();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment