Make captcha session stateless

[MAILPOET-6038]
This commit is contained in:
Jan Jakes
2024-07-10 09:32:07 +02:00
committed by Aschepikov
parent e8cf3d61ef
commit 71d7f46718
15 changed files with 133 additions and 142 deletions

View File

@@ -765,8 +765,7 @@ class SubscribersTest extends \MailPoetTest {
->create();
$captchaValue = ['phrase' => 'ihG5W'];
$captchaSessionId = 'abcdfgh';
$this->captchaSession->init($captchaSessionId);
$this->captchaSession->setCaptchaHash($captchaValue);
$this->captchaSession->setCaptchaHash($captchaSessionId, $captchaValue);
$response = $this->endpoint->subscribe([
$this->obfuscatedEmail => $email,
'form_id' => $this->form->getId(),