Laravel\Lumen\Testing\TestCase::actingAs PHP Method

actingAs() public method

Set the currently logged in user for the application.
public actingAs ( Illuminate\Contracts\Auth\Authenticatable $user, string | null $driver = null )
$user Illuminate\Contracts\Auth\Authenticatable
$driver string | null
    public function actingAs(Authenticatable $user, $driver = null)
    {
        $this->be($user, $driver);
        return $this;
    }