diff --git a/test/unittests/NDB_ConfigTest.php b/test/unittests/NDB_ConfigTest.php index a41c451d6e9..1dbbea6b65a 100644 --- a/test/unittests/NDB_ConfigTest.php +++ b/test/unittests/NDB_ConfigTest.php @@ -31,6 +31,19 @@ class FakeConfig extends NDB_Config public function __construct() { } + + /** + * Disable the settings cache for testing purposes. + * + * @param string $name The name of the setting to retrieve + * + * @return mixed The contents of the node identified by $name + */ + function getSetting(string $name) + { + $this->settingCache = []; + return parent::getSetting($name); + } } /** * Unit test for NDB_Config class