Skip to content

Commit

Permalink
Fixed assertion regarding accessing verification route for different …
Browse files Browse the repository at this point in the history
…user
  • Loading branch information
DCzajkowski committed Dec 1, 2018
1 parent aaf40e6 commit 059bd3e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ public function testUserCannotVerifyOthers()
'email_verified_at' => null,
]);

factory(User::class)->create(['id' => 2, 'email_verified_at' => null]);

$response = $this->actingAs($user)->get($this->validVerificationVerifyRoute(2));

$response->assertRedirect($this->successfulVerificationRoute());
$response->assertForbidden();
$this->assertFalse($user2->fresh()->hasVerifiedEmail());
}

public function testUserIsRedirectedToCorrectRouteWhenAlreadyVerified()
Expand Down

0 comments on commit 059bd3e

Please sign in to comment.