route = new OptionsRoute($I); } public function testRecaptchaPublicKey(FunctionalTester $I): void { $I->wantTo('Get recaptcha public key'); $this->route->get(); $I->canSeeResponseCodeIs(200); $I->canSeeResponseIsJson(); $I->canSeeResponseContainsJson([ 'reCaptchaPublicKey' => 'public-key', ]); } }