/**
  * Should redirect if authenticated.
  */
 public function testRedirectsIfAuthenticated()
 {
     $this->guard->expects($this->atLeastOnce())->method('check')->willReturn(true);
     $next = function () {
     };
     $response = $this->redirectIfAuthenticated->handle($this->request, $next);
     $this->assertInstanceOf(RedirectResponse::class, $response);
 }