Uses MP Model class vs. Idiorm's in test
This commit is contained in:
@ -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(
|
||||||
|
Reference in New Issue
Block a user