codestyle fixes, tests should be passing
Some checks failed
CI / testsuite (mysql, 8.4, ) (push) Successful in 6m3s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 3m10s
CI / testsuite (mysql, 8.2, ) (push) Successful in 12m49s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 6m44s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m11s
CI / testsuite (sqlite, 8.2, ) (push) Has started running
CI / testsuite (sqlite, 8.4, ) (push) Has started running
CI / Coding Standard & Static Analysis (push) Has been cancelled
Some checks failed
CI / testsuite (mysql, 8.4, ) (push) Successful in 6m3s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 3m10s
CI / testsuite (mysql, 8.2, ) (push) Successful in 12m49s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 6m44s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m11s
CI / testsuite (sqlite, 8.2, ) (push) Has started running
CI / testsuite (sqlite, 8.4, ) (push) Has started running
CI / Coding Standard & Static Analysis (push) Has been cancelled
This commit is contained in:
@@ -107,7 +107,7 @@ class ShoppingCartComponentTest extends TestCase {
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testCheckIfIsOwnCartIsNotOwnCart() {
|
public function testCheckIfIsOwnCartIsNotOwnCart() {
|
||||||
$this->expectException(RecordNotFoundException::class);
|
$this->expectException(RecordNotFoundException::class);
|
||||||
$cart = $this->fetchTable('Carts')->get('00e6ec6b-eef8-429c-9196-e7e0668ba749');
|
$cart = $this->fetchTable('Carts')->get('00e6ec6b-eef8-429c-9196-e7e0668ba749');
|
||||||
$this->component->checkIfIsOwnCart($cart);
|
$this->component->checkIfIsOwnCart($cart);
|
||||||
// if exception not thrown test fails
|
// if exception not thrown test fails
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ use Cake\Database\Connection;
|
|||||||
use Cake\Datasource\ConnectionManager;
|
use Cake\Datasource\ConnectionManager;
|
||||||
use Cake\TestSuite\Fixture\SchemaLoader;
|
use Cake\TestSuite\Fixture\SchemaLoader;
|
||||||
use CakeCarts\CakeCartsPlugin;
|
use CakeCarts\CakeCartsPlugin;
|
||||||
use Migrations\TestSuite\Migrator;
|
|
||||||
use TestApp\Controller\AppController;
|
use TestApp\Controller\AppController;
|
||||||
|
|
||||||
if (!defined('DS')) {
|
if (!defined('DS')) {
|
||||||
@@ -123,6 +122,5 @@ ConnectionManager::setConfig('test', [
|
|||||||
// Load a schema dump file.
|
// Load a schema dump file.
|
||||||
(new SchemaLoader())->loadSqlFiles('tests/schema.sql', 'test');
|
(new SchemaLoader())->loadSqlFiles('tests/schema.sql', 'test');
|
||||||
|
|
||||||
|
|
||||||
//$migrator = new Migrator();
|
//$migrator = new Migrator();
|
||||||
//$migrator->run(['plugin' => 'CakeCarts']);
|
//$migrator->run(['plugin' => 'CakeCarts']);
|
||||||
|
|||||||
Reference in New Issue
Block a user