tests should be passing now
Some checks failed
CI / testsuite (mysql, 8.2, ) (push) Has started running
CI / testsuite (mysql, 8.4, ) (push) Has started running
CI / testsuite (pgsql, 8.2, ) (push) Has been cancelled
CI / testsuite (pgsql, 8.4, ) (push) Has been cancelled
CI / testsuite (sqlite, 8.2, ) (push) Has been cancelled
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Has been cancelled
CI / testsuite (sqlite, 8.4, ) (push) Has been cancelled
CI / Coding Standard & Static Analysis (push) Has been cancelled
Some checks failed
CI / testsuite (mysql, 8.2, ) (push) Has started running
CI / testsuite (mysql, 8.4, ) (push) Has started running
CI / testsuite (pgsql, 8.2, ) (push) Has been cancelled
CI / testsuite (pgsql, 8.4, ) (push) Has been cancelled
CI / testsuite (sqlite, 8.2, ) (push) Has been cancelled
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Has been cancelled
CI / testsuite (sqlite, 8.4, ) (push) Has been cancelled
CI / Coding Standard & Static Analysis (push) Has been cancelled
This commit is contained in:
@@ -107,11 +107,10 @@ class ShoppingCartComponentTest extends TestCase {
|
||||
* @return void
|
||||
*/
|
||||
public function testCheckIfIsOwnCartIsNotOwnCart() {
|
||||
$this->expectExceptionCode(404);
|
||||
$cart = $this->fetchTable('Carts')->get('74d1aa54-92a2-4039-bc10-61e1190c51ec');
|
||||
$this->expectException(RecordNotFoundException::class);
|
||||
$cart = $this->fetchTable('Carts')->get('00e6ec6b-eef8-429c-9196-e7e0668ba749');
|
||||
$this->component->checkIfIsOwnCart($cart);
|
||||
// if exception not thrown test fails
|
||||
$this->expectException(RecordNotFoundException::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user