Ререализован метод для получения инфы о конфигурации API

This commit is contained in:
ErickSkrauch
2016-08-03 21:47:36 +03:00
parent 5e40ccbe49
commit 6efbbb7098
4 changed files with 14 additions and 14 deletions

View File

@@ -18,11 +18,12 @@ class OptionsCest {
public function testRecaptchaPublicKey(FunctionalTester $I) {
$I->wantTo('Get recaptcha public key');
$this->route->recaptchaPublicKey();
$this->route->get();
$I->canSeeResponseCodeIs(200);
// TODO: эта проверка не проходит, т.к внутри почему-то после запроса не устанавливаются http заголовки
//$I->seeHttpHeader('Content-Type', 'text/html; charset=UTF-8');
$I->canSeeResponseEquals('public-key');
$I->canSeeResponseIsJson();
$I->canSeeResponseContainsJson([
'reCaptchaPublicKey' => 'public-key',
]);
}
}