MDL-36466 cache: implemented functionality to disable the bulk of the cache API
[moodle.git] / cache / tests / locallib_test.php
index 3e6ba79..004a537 100644 (file)
@@ -50,6 +50,14 @@ class cache_config_writer_phpunit_tests extends advanced_testcase {
         cache_config_phpunittest::create_default_configuration();
     }
 
+    /**
+     * Final task is to reset the cache system
+     */
+    public static function tearDownAfterClass() {
+        parent::tearDownAfterClass();
+        cache_factory::reset();
+    }
+
     /**
      * Test getting an instance. Pretty basic.
      */
@@ -297,6 +305,14 @@ class cache_administration_helper_phpunit_tests extends advanced_testcase {
         cache_config_phpunittest::create_default_configuration();
     }
 
+    /**
+     * Final task is to reset the cache system
+     */
+    public static function tearDownAfterClass() {
+        parent::tearDownAfterClass();
+        cache_factory::reset();
+    }
+
     /**
      * Test the numerous summaries the helper can produce.
      */