PermissionFeatureTest.php 494 B

1234567891011121314151617181920
  1. <?php
  2. namespace Tests\Feature\Admin\Permissions;
  3. use App\Shop\Permissions\Permission;
  4. use Tests\TestCase;
  5. class PermissionFeatureTest extends TestCase
  6. {
  7. /** @test */
  8. public function it_can_display_all_the_permissions()
  9. {
  10. $permission = factory(Permission::class)->create();
  11. $this->actingAs($this->employee, 'employee')
  12. ->get(route('admin.permissions.index'))
  13. ->assertSee($permission->display_name)
  14. ->assertStatus(200);
  15. }
  16. }