mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Adjusted newly added tests to new checkout form
This commit is contained in:
parent
e8d0147075
commit
3c3b922eae
|
@ -207,7 +207,8 @@ class AccessoryCheckoutTest extends TestCase
|
||||||
$this->actingAs(User::factory()->admin()->create())
|
$this->actingAs(User::factory()->admin()->create())
|
||||||
->from(route('accessories.index'))
|
->from(route('accessories.index'))
|
||||||
->post(route('accessories.checkout.store', $accessory), [
|
->post(route('accessories.checkout.store', $accessory), [
|
||||||
'assigned_to' => User::factory()->create()->id,
|
'assigned_user' => User::factory()->create()->id,
|
||||||
|
'checkout_to_type' => 'user',
|
||||||
'redirect_option' => 'index',
|
'redirect_option' => 'index',
|
||||||
'assigned_qty' => 1,
|
'assigned_qty' => 1,
|
||||||
])
|
])
|
||||||
|
@ -222,7 +223,8 @@ class AccessoryCheckoutTest extends TestCase
|
||||||
$this->actingAs(User::factory()->admin()->create())
|
$this->actingAs(User::factory()->admin()->create())
|
||||||
->from(route('accessories.index'))
|
->from(route('accessories.index'))
|
||||||
->post(route('accessories.checkout.store' , $accessory), [
|
->post(route('accessories.checkout.store' , $accessory), [
|
||||||
'assigned_to' => User::factory()->create()->id,
|
'assigned_user' => User::factory()->create()->id,
|
||||||
|
'checkout_to_type' => 'user',
|
||||||
'redirect_option' => 'item',
|
'redirect_option' => 'item',
|
||||||
'assigned_qty' => 1,
|
'assigned_qty' => 1,
|
||||||
])
|
])
|
||||||
|
@ -239,7 +241,8 @@ class AccessoryCheckoutTest extends TestCase
|
||||||
$this->actingAs(User::factory()->admin()->create())
|
$this->actingAs(User::factory()->admin()->create())
|
||||||
->from(route('accessories.index'))
|
->from(route('accessories.index'))
|
||||||
->post(route('accessories.checkout.store' , $accessory), [
|
->post(route('accessories.checkout.store' , $accessory), [
|
||||||
'assigned_to' => $user->id,
|
'assigned_user' => $user->id,
|
||||||
|
'checkout_to_type' => 'user',
|
||||||
'redirect_option' => 'target',
|
'redirect_option' => 'target',
|
||||||
'assigned_qty' => 1,
|
'assigned_qty' => 1,
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue