mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update CartTest.php
This commit is contained in:
@@ -234,8 +234,7 @@ class CartTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function it_will_validate_the_identifier()
|
public function it_will_validate_the_identifier()
|
||||||
{
|
{
|
||||||
$this->expectException(\InvalidArgumentException::class);
|
$this->expectException(\TypeError::class);
|
||||||
$this->expectExceptionMessage('Please supply a valid identifier.');
|
|
||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
@@ -247,8 +246,7 @@ class CartTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function it_will_validate_the_quantity()
|
public function it_will_validate_the_quantity()
|
||||||
{
|
{
|
||||||
$this->expectException(\InvalidArgumentException::class);
|
$this->expectException(\TypeError::class);
|
||||||
$this->expectExceptionMessage('Please supply a valid quantity.');
|
|
||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
@@ -260,8 +258,7 @@ class CartTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function it_will_validate_the_price()
|
public function it_will_validate_the_price()
|
||||||
{
|
{
|
||||||
$this->expectException(\InvalidArgumentException::class);
|
$this->expectException(\TypeError::class);
|
||||||
$this->expectExceptionMessage('Please supply a valid price.');
|
|
||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
@@ -273,8 +270,7 @@ class CartTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function it_will_validate_the_weight()
|
public function it_will_validate_the_weight()
|
||||||
{
|
{
|
||||||
$this->expectException(\InvalidArgumentException::class);
|
$this->expectException(\TypeError::class);
|
||||||
$this->expectExceptionMessage('Please supply a valid weight');
|
|
||||||
|
|
||||||
$cart = $this->getCart();
|
$cart = $this->getCart();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user