Fix unit tests for PHPUnit v6

Codeception from version 2.3 up comes with PHPUnit v6 which changed
__construct behaviour. Our tests have to call parent __constructor in
order to work. The error was:
[PHPUnit\Framework\Exception] array_merge(): Argument #1 is not an array
This commit is contained in:
Pavel Dohnal
2017-06-07 11:32:33 +01:00
parent 5349f3a59a
commit b80683a9a1
10 changed files with 10 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ use MailPoet\Models\SubscriberCustomField;
class SubscriberCustomFieldTest extends MailPoetTest {
function __construct() {
parent::__construct();
$this->data = array(
array(
'custom_field_id' => 10,