Fix constructor initialization

[MAILPOET-2219]
This commit is contained in:
Pavel Dohnal
2019-08-26 11:09:53 +02:00
committed by M. Shull
parent 3f3983113a
commit abb772a1c5
5 changed files with 13 additions and 5 deletions

View File

@ -51,7 +51,8 @@ class SendingQueueTest extends \MailPoetTest {
wp_set_current_user($wp_users[0]->ID);
$this->settings = new SettingsController();
$referral_detector = new ReferralDetector(WPFunctions::get(), $this->settings);
$populator = new Populator($this->settings, WPFunctions::get(), new Captcha, $referral_detector, new FeaturesController());
$features_controller = Stub::makeEmpty(FeaturesController::class);
$populator = new Populator($this->settings, WPFunctions::get(), new Captcha, $referral_detector, $features_controller);
$populator->up();
$this->subscriber = Subscriber::create();
$this->subscriber->email = 'john@doe.com';