diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-10-06 11:33:48 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-10-06 11:33:48 +0400 |
commit | f59fbe49a30c39f62317e5b656f3343663c7024e (patch) | |
tree | bfcfb3151ad58c3c0e16ea5a3ca79e55007278b4 /core | |
parent | b9112763026b85398b2406a478c0436088ef461c (diff) |
refs #5940 this might fix the integration tests. Took me a long time to figure out what is going on. We should reset all the caches at least before each class otherwise the tests are no longer atomic and therefore worthless. This test was working when executing only this test but not when executing all tests
Diffstat (limited to 'core')
-rw-r--r-- | core/Cache/StaticCache.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Cache/StaticCache.php b/core/Cache/StaticCache.php index b09f49ae0b..0c102e18d3 100644 --- a/core/Cache/StaticCache.php +++ b/core/Cache/StaticCache.php @@ -70,6 +70,15 @@ class StaticCache } /** + * Reset the stored content of the current cache key. + * @ignore + */ + public static function clearAll() + { + self::$staticCache = array(); + } + + /** * Set (overwrite) any content related to the current set cache key. * @param $content */ |