Skip to content

Commit

Permalink
Merge branch 'tests' of https://github.com/nasirkhan/laravel-starter
Browse files Browse the repository at this point in the history
…into tests
  • Loading branch information
nasirkhan committed May 18, 2024
2 parents 0f714cb + d9dc36b commit af776d5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Feature/BackendViewSuperAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function test_super_admin_user_can_create_user(): void
public function test_super_admin_user_can_show_user(): void
{
for ($i = 1; $i <= 5; $i++) {
$response = $this->get('/admin/users/' . $i);
$response = $this->get('/admin/users/'.$i);

$response->assertStatus(200);
}
Expand All @@ -110,7 +110,7 @@ public function test_super_admin_user_can_show_user(): void
public function test_super_admin_user_can_edit_user(): void
{
for ($i = 1; $i <= 5; $i++) {
$response = $this->get('/admin/users/' . $i . '/edit');
$response = $this->get('/admin/users/'.$i.'/edit');

$response->assertStatus(200);
}
Expand Down Expand Up @@ -149,7 +149,7 @@ public function test_super_admin_user_can_restore_trashed_user(): void
{
$model_id = 5;

$response = $this->delete('/admin/users/' . $model_id);
$response = $this->delete('/admin/users/'.$model_id);

$response->assertStatus(302);

Expand Down Expand Up @@ -178,7 +178,7 @@ public function test_super_admin_user_can_restore_user(): void
public function test_super_admin_user_can_view_change_password_user(): void
{
for ($i = 1; $i <= 5; $i++) {
$response = $this->get('/admin/users/' . $i . '/change-password');
$response = $this->get('/admin/users/'.$i.'/change-password');

$response->assertStatus(200);
}
Expand Down Expand Up @@ -227,7 +227,7 @@ public function test_super_admin_user_can_create_role(): void
public function test_super_admin_user_can_show_role(): void
{
for ($i = 1; $i <= 5; $i++) {
$response = $this->get('/admin/roles/' . $i);
$response = $this->get('/admin/roles/'.$i);

$response->assertStatus(200);
}
Expand All @@ -236,7 +236,7 @@ public function test_super_admin_user_can_show_role(): void
public function test_super_admin_user_can_edit_role(): void
{
for ($i = 1; $i <= 5; $i++) {
$response = $this->get('/admin/roles/' . $i . '/edit');
$response = $this->get('/admin/roles/'.$i.'/edit');

$response->assertStatus(200);
}
Expand Down Expand Up @@ -356,7 +356,7 @@ public function test_super_admin_user_can_restore_trashed_post(): void

$model_id = 5;

$response = $this->delete('/admin/posts/' . $model_id);
$response = $this->delete('/admin/posts/'.$model_id);

$response->assertStatus(302);

Expand Down Expand Up @@ -464,7 +464,7 @@ public function test_super_admin_user_can_restore_trashed_category(): void

$model_id = 5;

$response = $this->delete('/admin/categories/' . $model_id);
$response = $this->delete('/admin/categories/'.$model_id);

$response->assertStatus(302);

Expand Down Expand Up @@ -572,7 +572,7 @@ public function test_super_admin_user_can_restore_trashed_tag(): void

$model_id = 5;

$response = $this->delete('/admin/tags/' . $model_id);
$response = $this->delete('/admin/tags/'.$model_id);

$response->assertStatus(302);

Expand Down

0 comments on commit af776d5

Please sign in to comment.