From 8f195a5906db3d28dee4cfb8a8e8343dfdd9e762 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 13 May 2019 18:19:51 -0400 Subject: [PATCH] [#13002] - Moved the setup to the _before --- tests/integration/Mvc/Model/SaveCest.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/integration/Mvc/Model/SaveCest.php b/tests/integration/Mvc/Model/SaveCest.php index f04a5a33083..5bd0e0902b7 100644 --- a/tests/integration/Mvc/Model/SaveCest.php +++ b/tests/integration/Mvc/Model/SaveCest.php @@ -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 @@ -37,6 +33,7 @@ class SaveCest public function _before(IntegrationTester $I) { $this->setNewFactoryDefault(); + $this->setDiMysql(); } /** @@ -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 @@ -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(); @@ -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 @@ -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