tests/Feature/Admin/ManagePostsControllerTest.php
/**
     * Test that users passing the admin gate can access the admin index.
     *
     * These authentication tests are only done on the single index route as they should all be caught by
     * the 'can:blog-etc-admin' middleware on the admin group.
     *
     * (Via gate)
     */
Test that users passing the admin gate can access the admin index.
These authentication tests are only done on the single index route as they should all be caught by
the 'can:blog-etc-admin' middleware on the admin group.

(Via gate)
Test that users passing the admin gate can access the admin index . These authentication tests are only done on the single index route as they should all be caught by the ' can : blog - etc - admin ' middleware on the admin group . ( Via gate )
public function testAdminUsersCanAccess(): void
    {
        $this->beAdminUser();
        $response = $this->get(route('blogetc.admin.index'));
        $response->assertOk();
    }
public function testAdminUsersCanAccess ( ) : void { $ this -> beAdminUser ( ) ; $ response = $ this -> get ( route ( 'blogetc.admin.index' ) ) ; $ response -> assertOk ( ) ; }
Test that users passing the admin gate can access the admin index.
Test that users passing the admin gate can access the admin index .