Move the MailChimp test to integration suite
[MAILPOET-2843]
This commit is contained in:
@ -45,16 +45,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
|
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Property MailPoet\\\\Test\\\\Subscribers\\\\ImportExport\\\\Import\\\\MailChimpTest\\:\\:\\$apiKey \\(string\\) does not accept string\\|false\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../tests/unit/Subscribers/ImportExport/Import/MailChimpTest.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Parameter \\#2 \\$str of function explode expects string, string\\|false given\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../tests/unit/Subscribers/ImportExport/Import/MailChimpTest.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Property MailPoet\\\\Test\\\\WP\\\\ReadmeTest\\:\\:\\$data \\(string\\) does not accept string\\|false\\.$#"
|
message: "#^Property MailPoet\\\\Test\\\\WP\\\\ReadmeTest\\:\\:\\$data \\(string\\) does not accept string\\|false\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
@ -6,7 +6,7 @@ use Codeception\Stub;
|
|||||||
use MailPoet\Subscribers\ImportExport\Import\MailChimp;
|
use MailPoet\Subscribers\ImportExport\Import\MailChimp;
|
||||||
use MailPoet\WP\Functions as WPFunctions;
|
use MailPoet\WP\Functions as WPFunctions;
|
||||||
|
|
||||||
class MailChimpTest extends \MailPoetUnitTest {
|
class MailChimpTest extends \MailPoetTest {
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $apiKey;
|
private $apiKey;
|
||||||
|
|
||||||
@ -18,9 +18,9 @@ class MailChimpTest extends \MailPoetUnitTest {
|
|||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->apiKey = getenv('WP_TEST_IMPORT_MAILCHIMP_API');
|
$this->apiKey = (string)getenv('WP_TEST_IMPORT_MAILCHIMP_API');
|
||||||
$this->mailchimp = new MailChimp($this->apiKey);
|
$this->mailchimp = new MailChimp($this->apiKey);
|
||||||
$this->lists = explode(",", getenv('WP_TEST_IMPORT_MAILCHIMP_LISTS'));
|
$this->lists = explode(",", (string)getenv('WP_TEST_IMPORT_MAILCHIMP_LISTS'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function _before() {
|
public function _before() {
|
Reference in New Issue
Block a user