Replace "new SettingsController()" with fetch from DI container
[MAILPOET-2436]
This commit is contained in:
committed by
Jack Kitterhing
parent
c91cd1255a
commit
d970dda637
@@ -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() {
|
||||
|
Reference in New Issue
Block a user