Add service for cookies handling & encode them with JSON

[PREMIUM-121]
This commit is contained in:
Jan Jakeš
2019-06-20 15:51:44 +02:00
committed by M. Shull
parent 86fe698e31
commit 440ed0aa23
7 changed files with 107 additions and 45 deletions

View File

@ -13,6 +13,7 @@ use MailPoet\Settings\SettingsController;
use MailPoet\Statistics\Track\Clicks;
use MailPoet\Statistics\Track\Opens;
use MailPoet\Tasks\Sending as SendingTask;
use MailPoet\Util\Cookies;
class TrackTest extends \MailPoetTest {
function _before() {
@ -50,7 +51,7 @@ class TrackTest extends \MailPoetTest {
'preview' => false,
];
// instantiate class
$this->track = new Track(new Clicks(new SettingsController()), new Opens());
$this->track = new Track(new Clicks(new SettingsController(), new Cookies()), new Opens());
}
function testItReturnsFalseWhenTrackDataIsMissing() {