Skip to content

Commit

Permalink
[#13002] - Moved the setup to the _before
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed May 15, 2019
1 parent d59e5c5 commit 8f195a5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/integration/Mvc/Model/SaveCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@
use Phalcon\Test\Models\AlbumORama\Albums;
use Phalcon\Test\Models\AlbumORama\Artists;
use Phalcon\Test\Models\Parts;
use Phalcon\Test\Models\Prueba;
use Phalcon\Test\Models\Robots;
use Phalcon\Test\Models\RobotsParts;
use Phalcon\Test\Models\Users;
use function is_int;
use function is_string;
use function uniqid;

/**
* Class SaveCest
Expand All @@ -37,6 +33,7 @@ class SaveCest
public function _before(IntegrationTester $I)
{
$this->setNewFactoryDefault();
$this->setDiMysql();
}

/**
Expand All @@ -52,7 +49,6 @@ public function _before(IntegrationTester $I)
public function mvcModelSave(IntegrationTester $I, Example $function)
{
$I->wantToTest('Mvc\Model - save()');
$this->setDiMysql();

/**
* New model
Expand Down Expand Up @@ -126,7 +122,6 @@ public function mvcModelSave(IntegrationTester $I, Example $function)
public function mvcModelSaveWithRelatedRecords(IntegrationTester $I)
{
$I->wantToTest('Mvc\Model - save() with related records');
$this->setDiMysql();

$robotPart = new RobotsParts();

Expand Down Expand Up @@ -206,7 +201,6 @@ public function mvcModelSaveWithRelatedRecords(IntegrationTester $I)
public function mvcModelSaveAfterFetchingRelated(IntegrationTester $I)
{
$I->wantToTest('Mvc\Model - save() after fetching related');
$this->setDiMysql();

/**
* @var Albums $album
Expand Down Expand Up @@ -241,7 +235,6 @@ public function mvcModelSaveAfterFetchingRelated(IntegrationTester $I)
public function mvcModelSaveAfterUsingRelatedGetters(IntegrationTester $I)
{
$I->wantToTest('Mvc\Model - save() after using related records getters');
$this->setDiMysql();

/**
* @var Albums $album
Expand Down

0 comments on commit 8f195a5

Please sign in to comment.