From 9a99613d3d177c9aa536ab183ffb46ff31a36090 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 20:38:34 +0100 Subject: [PATCH] Update CartTest.php --- tests/CartTest.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/CartTest.php b/tests/CartTest.php index e60f31f..fdd5482 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -234,8 +234,7 @@ class CartTest extends TestCase */ public function it_will_validate_the_identifier() { - $this->expectException(\InvalidArgumentException::class); - $this->expectExceptionMessage('Please supply a valid identifier.'); + $this->expectException(\TypeError::class); $cart = $this->getCart(); @@ -247,8 +246,7 @@ class CartTest extends TestCase */ public function it_will_validate_the_quantity() { - $this->expectException(\InvalidArgumentException::class); - $this->expectExceptionMessage('Please supply a valid quantity.'); + $this->expectException(\TypeError::class); $cart = $this->getCart(); @@ -260,8 +258,7 @@ class CartTest extends TestCase */ public function it_will_validate_the_price() { - $this->expectException(\InvalidArgumentException::class); - $this->expectExceptionMessage('Please supply a valid price.'); + $this->expectException(\TypeError::class); $cart = $this->getCart(); @@ -273,8 +270,7 @@ class CartTest extends TestCase */ public function it_will_validate_the_weight() { - $this->expectException(\InvalidArgumentException::class); - $this->expectExceptionMessage('Please supply a valid weight'); + $this->expectException(\TypeError::class); $cart = $this->getCart();