Uses MP Model class vs. Idiorm's in test

This commit is contained in:
Vlad
2017-07-18 09:49:01 -04:00
parent c28726f118
commit e2a048a65f

View File

@ -1,6 +1,7 @@
<?php <?php
use Codeception\Util\Stub; use Codeception\Util\Stub;
use MailPoet\Models\Model as MPModel;
class ModelTest extends MailPoetTest { class ModelTest extends MailPoetTest {
function testItRethrowsPDOExceptions() { function testItRethrowsPDOExceptions() {
@ -25,7 +26,7 @@ class ModelTest extends MailPoetTest {
} }
function testItConvertsModelObjectToArray() { function testItConvertsModelObjectToArray() {
$model = Model::create(); $model = MPModel::create();
$model->first = 'first'; $model->first = 'first';
$model->last = 'last'; $model->last = 'last';
expect($model->asArray('first'))->equals( expect($model->asArray('first'))->equals(