Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Fixed test for variable reCAPTCHA token.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Jun 13, 2019
1 parent 34196aa commit 0ae50e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Middleware/CheckRecaptchaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function testFailsOnNonPostMethod()

public function testFailsInvalidToken()
{
$response = $this->post('test-post', [ '_recaptcha' => Str::random(357)]);
$response = $this->post('test-post', [ '_recaptcha' => Str::random(401)]);

$response->assertStatus(500);
$this->assertInstanceOf(InvalidRecaptchaException::class, $response->exception);
Expand Down

0 comments on commit 0ae50e1

Please sign in to comment.