Verified Commit 82246092 authored by Korko's avatar Korko
Browse files

Remove recaptcha from tests

parent 67282b16
Pipeline #381323 failed with stages
in 4 minutes and 48 seconds
......@@ -16,9 +16,6 @@ class RequestCase extends TestCase
{
parent::setUp();
$this->artisan('migrate');
NoCaptcha::shouldReceive('verifyResponse')->andReturn(true);
NoCaptcha::makePartial(); // We don't want to mock the display
}
public function ajaxPost($url, array $postArgs = [], $headers = [])
......@@ -29,10 +26,6 @@ class RequestCase extends TestCase
'X-HASH-KEY' => base64_encode(DrawCrypt::getKey())
];
$postArgs = $postArgs + [
'g-recaptcha-response' => 'mocked',
];
return $this->withHeaders($headers)->json('POST', $url, $postArgs);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment