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

@@ -1,6 +1,7 @@
<?php
namespace MailPoet\Test\Newsletter;
use Codeception\Util\Stub;
use MailPoet\Config\Populator;
use MailPoet\Features\FeaturesController;
use MailPoet\Models\CustomField;
@@ -29,7 +30,8 @@ class ShortcodesTest extends \MailPoetTest {
parent::_before();
$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->WP_user = $this->_createWPUser();
$this->WP_post = $this->_createWPPost();