mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Remove extra assertions
This commit is contained in:
parent
4d2790c3f4
commit
4fb349e326
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace Tests\Feature\Checkouts;
|
namespace Tests\Feature\Checkouts;
|
||||||
|
|
||||||
use App\Models\Actionlog;
|
|
||||||
use App\Models\Asset;
|
use App\Models\Asset;
|
||||||
use App\Models\License;
|
use App\Models\License;
|
||||||
use App\Models\LicenseSeat;
|
use App\Models\LicenseSeat;
|
||||||
|
@ -26,8 +25,7 @@ class LicenseCheckoutTest extends TestCase
|
||||||
'assigned_to' => null,
|
'assigned_to' => null,
|
||||||
'asset_id' => $asset->id,
|
'asset_id' => $asset->id,
|
||||||
'notes' => 'oh hi there',
|
'notes' => 'oh hi there',
|
||||||
])
|
]);
|
||||||
->assertRedirect();
|
|
||||||
|
|
||||||
$this->assertDatabaseHas('action_logs', [
|
$this->assertDatabaseHas('action_logs', [
|
||||||
'action_type' => 'checkout',
|
'action_type' => 'checkout',
|
||||||
|
@ -50,8 +48,7 @@ class LicenseCheckoutTest extends TestCase
|
||||||
'assigned_to' => $admin->id,
|
'assigned_to' => $admin->id,
|
||||||
'asset_id' => null,
|
'asset_id' => null,
|
||||||
'notes' => 'oh hi there',
|
'notes' => 'oh hi there',
|
||||||
])
|
]);
|
||||||
->assertRedirect();
|
|
||||||
|
|
||||||
$this->assertDatabaseHas('action_logs', [
|
$this->assertDatabaseHas('action_logs', [
|
||||||
'action_type' => 'checkout',
|
'action_type' => 'checkout',
|
||||||
|
|
Loading…
Reference in a new issue