updated test routes
This commit is contained in:
@@ -38,7 +38,7 @@ class PermissionsTest extends FeatureTestCase
|
||||
$permission = $this->dispatch(new CreatePermission($this->getPermissionRequest()));
|
||||
|
||||
$this->loginAs()
|
||||
->get(route('permissions.edit', ['permission' => $permission->id]))
|
||||
->get(route('permissions.edit', $permission->id))
|
||||
->assertStatus(200)
|
||||
->assertSee($permission->name);
|
||||
}
|
||||
@@ -78,4 +78,4 @@ class PermissionsTest extends FeatureTestCase
|
||||
'description' => $this->faker->text(5),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ class RolesTest extends FeatureTestCase
|
||||
$role = $this->dispatch(new CreateRole($this->getRoleRequest()));
|
||||
|
||||
$this->loginAs()
|
||||
->get(route('roles.edit', ['role' => $role->id]))
|
||||
->get(route('roles.edit', $role->id))
|
||||
->assertStatus(200)
|
||||
->assertSee($role->name);
|
||||
}
|
||||
@@ -79,4 +79,4 @@ class RolesTest extends FeatureTestCase
|
||||
'permissions' => Permission::take(10)->pluck('id')->toArray(),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class UsersTest extends FeatureTestCase
|
||||
$user = $this->dispatch(new CreateUser($this->getRequest()));
|
||||
|
||||
$this->loginAs()
|
||||
->get(route('users.edit', ['user' => $user->id]))
|
||||
->get(route('users.edit', $user->id))
|
||||
->assertStatus(200)
|
||||
->assertSee($user->name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user