Assert redirected to correct place
This commit is contained in:
parent
5786ff5035
commit
fc405d9d73
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ class BulkDeleteUsersTest extends TestCase
|
||||||
],
|
],
|
||||||
'status_id' => Statuslabel::factory()->create()->id,
|
'status_id' => Statuslabel::factory()->create()->id,
|
||||||
])
|
])
|
||||||
->assertRedirect();
|
->assertRedirect(route('users.index'));
|
||||||
|
|
||||||
$this->assertTrue($userA->fresh()->accessories->isEmpty());
|
$this->assertTrue($userA->fresh()->accessories->isEmpty());
|
||||||
$this->assertTrue($userB->fresh()->accessories->isNotEmpty());
|
$this->assertTrue($userB->fresh()->accessories->isNotEmpty());
|
||||||
|
@ -103,7 +103,7 @@ class BulkDeleteUsersTest extends TestCase
|
||||||
],
|
],
|
||||||
'status_id' => Statuslabel::factory()->create()->id,
|
'status_id' => Statuslabel::factory()->create()->id,
|
||||||
])
|
])
|
||||||
->assertRedirect();
|
->assertRedirect(route('users.index'));
|
||||||
|
|
||||||
$this->assertTrue($userA->fresh()->consumables->isEmpty());
|
$this->assertTrue($userA->fresh()->consumables->isEmpty());
|
||||||
$this->assertTrue($userB->fresh()->consumables->isNotEmpty());
|
$this->assertTrue($userB->fresh()->consumables->isNotEmpty());
|
||||||
|
@ -128,7 +128,7 @@ class BulkDeleteUsersTest extends TestCase
|
||||||
],
|
],
|
||||||
'delete_user' => '1',
|
'delete_user' => '1',
|
||||||
])
|
])
|
||||||
->assertRedirect()
|
->assertRedirect(route('users.index'))
|
||||||
->assertSessionHas('success', trans('general.bulk_checkin_delete_success'));
|
->assertSessionHas('success', trans('general.bulk_checkin_delete_success'));
|
||||||
|
|
||||||
$this->assertSoftDeleted($userA);
|
$this->assertSoftDeleted($userA);
|
||||||
|
|
Loading…
Add table
Reference in a new issue