Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Oct 8, 2019
1 parent c03c742 commit 77e8c14
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
13 changes: 0 additions & 13 deletions tests/Feature/Auth/ForgotPasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ protected function postRoute()
return route('password.email');
}

protected function guestMiddlewareRoute()
{
return route('home');
}

/** @test */
public function user_can_view_an_email_password_form()
{
Expand All @@ -41,14 +36,6 @@ public function user_can_view_an_email_password_form()
->assertViewIs('frontend.auth.passwords.email');
}

/** @test */
public function user_cannot_view_an_email_password_form_when_authenticated()
{
$response = $this->loginAsUser()->get($this->requestRoute());

$response->assertRedirect($this->guestMiddlewareRoute());
}

/** @test */
public function user_receives_an_email_with_a_password_reset_link()
{
Expand Down
16 changes: 0 additions & 16 deletions tests/Feature/Auth/ResetPasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ protected function successfulRoute()
return route('dashboard');
}

protected function guestMiddlewareRoute()
{
return route('home');
}

/** @test */
public function user_can_view_a_password_reset_form()
{
Expand All @@ -52,17 +47,6 @@ public function user_can_view_a_password_reset_form()
->assertViewHas('token', $token);
}

/** @test */
public function user_cannot_view_a_password_reset_form_when_authenticated()
{
$user = $this->user();

$response = $this->actingAs($user)
->get($this->getRoute($this->getValidToken($user)));

$response->assertRedirect($this->guestMiddlewareRoute());
}

/** @test */
public function user_can_reset_password_with_valid_token()
{
Expand Down

0 comments on commit 77e8c14

Please sign in to comment.