Laravel\Lumen\Testing\ApplicationTrait::be PHP 메소드

be() 공개 메소드

Set the currently logged in user for the application.
public be ( Illuminate\Contracts\Auth\Authenticatable $user, string $driver = null ) : void
$user Illuminate\Contracts\Auth\Authenticatable
$driver string
리턴 void
    public function be(UserContract $user, $driver = null)
    {
        $this->app['auth']->driver($driver)->setUser($user);
    }