mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update CartTest.php
https://github.com/sebastianbergmann/phpunit/issues/1778#issuecomment-120942848
This commit is contained in:
@@ -241,19 +241,6 @@ class CartTest extends TestCase
|
|||||||
$cart->add(null, 'Some title', 1, 10.00);
|
$cart->add(null, 'Some title', 1, 10.00);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @test
|
|
||||||
*/
|
|
||||||
public function it_will_validate_the_name()
|
|
||||||
{
|
|
||||||
$this->expectException(\InvalidArgumentException::class);
|
|
||||||
$this->expectExceptionMessage('Please supply a valid name.');
|
|
||||||
|
|
||||||
$cart = $this->getCart();
|
|
||||||
|
|
||||||
$cart->add(1, null, 1, 10.00);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user