route = new OptionsRoute($I); } public function testCaptchaPublicParams(FunctionalTester $I): void { $I->wantTo('Get captcha public params'); $this->route->get(); $I->canSeeResponseCodeIs(200); $I->canSeeResponseIsJson(); $I->canSeeResponseContainsJson([ 'captcha' => [ 'recaptcha' => [ 'publicKey' => 'public-key', ], 'yandex' => [ 'publicKey' => 'yandex-public-key', ], 'altcha' => [ 'challengeUrl' => '/api/captcha/altcha/challenge', ], ], ]); } }