Remove static behavior from SettingsController

[MAILPOET-2436]
This commit is contained in:
Jan Jakeš
2019-10-28 10:39:48 +01:00
committed by Jack Kitterhing
parent d970dda637
commit 388ced8b53
5 changed files with 17 additions and 23 deletions

View File

@ -42,7 +42,7 @@ class SettingsTest extends \MailPoetTest {
expect($response->data['some']['setting']['key'])->true();
Setting::deleteMany();
SettingsController::resetCache();
$this->settings->resetCache();
$response = $this->endpoint->get();
expect($response->status)->equals(APIResponse::STATUS_OK);
expect($response->data)->equals($this->settings->getAllDefaults());