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

This commit is contained in:
2026-02-14 00:45:29 -08:00
parent 2b9bd60ffd
commit 11aafbb232
3 changed files with 67 additions and 7 deletions

View File

@@ -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);
}
}