Added qty

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-18 04:29:49 +01:00
parent 0ef58a9aef
commit fa5b59cf21

View file

@ -71,7 +71,7 @@ class AccessoryCheckoutTest extends TestCase
public function testAccessoryCanBeCheckedOutWithQuantity() public function testAccessoryCanBeCheckedOutWithQuantity()
{ {
$accessory = Accessory::factory()->count(5)->create(); $accessory = Accessory::factory()->create(['qty'=>5]);
$user = User::factory()->create(); $user = User::factory()->create();
$this->actingAs(User::factory()->checkoutAccessories()->create()) $this->actingAs(User::factory()->checkoutAccessories()->create())