* Avoid argc side-effects
* Fix undefined array keys in JITConfigAdapter::set()
* Avoid argv side effects in ApiTest
$stored = $this->get($cat, $k, null, true);
+ if (!isset($this->in_db[$cat])) {
+ $this->in_db[$cat] = [];
+ }
+ if (!isset($this->in_db[$cat][$k])) {
+ $this->in_db[$cat] = false;
+ }
+
if (($stored === $dbvalue) && $this->in_db[$cat][$k]) {
return true;
}
Config::set('system', 'theme', 'system_theme');
}
+ /**
+ * Cleanup variables used by tests.
+ */
+ protected function tearDown()
+ {
+ parent::tearDown();
+
+ $app = get_app();
+ $app->argc = 1;
+ $app->argv = ['home'];
+ }
+
/**
* Assert that an user array contains expected keys.
* @param array $user User array