diff --git a/tests/TestCase/Controller/Component/ShoppingCartComponentTest.php b/tests/TestCase/Controller/Component/ShoppingCartComponentTest.php index 9f17b55..e8a06ee 100644 --- a/tests/TestCase/Controller/Component/ShoppingCartComponentTest.php +++ b/tests/TestCase/Controller/Component/ShoppingCartComponentTest.php @@ -107,7 +107,7 @@ class ShoppingCartComponentTest extends TestCase { * @return void */ public function testCheckIfIsOwnCartIsNotOwnCart() { - $this->expectException(RecordNotFoundException::class); + $this->expectException(RecordNotFoundException::class); $cart = $this->fetchTable('Carts')->get('00e6ec6b-eef8-429c-9196-e7e0668ba749'); $this->component->checkIfIsOwnCart($cart); // if exception not thrown test fails diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 6ac5649..456de44 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -9,7 +9,6 @@ use Cake\Database\Connection; use Cake\Datasource\ConnectionManager; use Cake\TestSuite\Fixture\SchemaLoader; use CakeCarts\CakeCartsPlugin; -use Migrations\TestSuite\Migrator; use TestApp\Controller\AppController; if (!defined('DS')) { @@ -123,6 +122,5 @@ ConnectionManager::setConfig('test', [ // Load a schema dump file. (new SchemaLoader())->loadSqlFiles('tests/schema.sql', 'test'); - //$migrator = new Migrator(); //$migrator->run(['plugin' => 'CakeCarts']);