tests/TestCase.php
/**
     * Be an admin user, give gate permissions to user.
     */
Be an admin user, give gate permissions to user.
Be an admin user give gate permissions to user .
protected function beNonAdminUser(): void
    {
        $user = new User();
        $user->id = 1;
        $this->be($user);
        $this->denyAdminGate();
    }
protected function beNonAdminUser ( ) : void { $ user = new User ( ) ; $ user -> id = 1 ; $ this -> be ( $ user ) ; $ this -> denyAdminGate ( ) ; }
Be an admin user, give gate permissions to user.
Be an admin user give gate permissions to user .