Skip to content

Commit af776d5

Browse files
committed
Merge branch 'tests' of https://github.com/nasirkhan/laravel-starter into tests
2 parents 0f714cb + d9dc36b commit af776d5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/Feature/BackendViewSuperAdminTest.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function test_super_admin_user_can_create_user(): void
101101
public function test_super_admin_user_can_show_user(): void
102102
{
103103
for ($i = 1; $i <= 5; $i++) {
104-
$response = $this->get('/admin/users/' . $i);
104+
$response = $this->get('/admin/users/'.$i);
105105

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

115115
$response->assertStatus(200);
116116
}
@@ -149,7 +149,7 @@ public function test_super_admin_user_can_restore_trashed_user(): void
149149
{
150150
$model_id = 5;
151151

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

154154
$response->assertStatus(302);
155155

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

183183
$response->assertStatus(200);
184184
}
@@ -227,7 +227,7 @@ public function test_super_admin_user_can_create_role(): void
227227
public function test_super_admin_user_can_show_role(): void
228228
{
229229
for ($i = 1; $i <= 5; $i++) {
230-
$response = $this->get('/admin/roles/' . $i);
230+
$response = $this->get('/admin/roles/'.$i);
231231

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

241241
$response->assertStatus(200);
242242
}
@@ -356,7 +356,7 @@ public function test_super_admin_user_can_restore_trashed_post(): void
356356

357357
$model_id = 5;
358358

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

361361
$response->assertStatus(302);
362362

@@ -464,7 +464,7 @@ public function test_super_admin_user_can_restore_trashed_category(): void
464464

465465
$model_id = 5;
466466

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

469469
$response->assertStatus(302);
470470

@@ -572,7 +572,7 @@ public function test_super_admin_user_can_restore_trashed_tag(): void
572572

573573
$model_id = 5;
574574

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

577577
$response->assertStatus(302);
578578

0 commit comments

Comments
 (0)