PermissionTest.php 533 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Tests\Feature\API;
  3. use Tests\Feature\TestCase;
  4. class PermissionTest extends TestCase
  5. {
  6. public function test_get_group_permissions(): void
  7. {
  8. $response = $this->get(route('permission.group-permission'));
  9. $response->assertStatus(200)
  10. ->assertJsonStructure([
  11. 'data' => [
  12. '*' => [
  13. 'id',
  14. 'name',
  15. 'permissions'
  16. ]
  17. ]
  18. ]);
  19. }
  20. }