Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Apr 24, 2024
1 parent c287aa2 commit 14eaf24
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/unittests/NDB_ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14eaf24

Please # to comment.