Replace "new SettingsController()" with fetch from DI container

[MAILPOET-2436]
This commit is contained in:
Jan Jakeš
2019-10-24 10:48:58 +02:00
committed by Jack Kitterhing
parent c91cd1255a
commit d970dda637
79 changed files with 132 additions and 125 deletions

View File

@@ -54,7 +54,7 @@ class TrackTest extends \MailPoetTest {
'preview' => false,
];
// instantiate class
$this->track = new Track(new Clicks(new SettingsController(), new Cookies()), new Opens(), new LinkTokens());
$this->track = new Track(new Clicks(SettingsController::getInstance(), new Cookies()), new Opens(), new LinkTokens());
}
function testItReturnsFalseWhenTrackDataIsMissing() {