mirror of
https://github.com/elyby/accounts.git
synced 2026-04-28 18:35:36 +05:30
Rework tests structure. Upgrade codeception to 2.5.3. Merge params configuration into app configuration.
This commit is contained in:
29
api/tests/functional/OptionsCest.php
Normal file
29
api/tests/functional/OptionsCest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace api\tests\functional;
|
||||
|
||||
use api\tests\_pages\OptionsRoute;
|
||||
use api\tests\FunctionalTester;
|
||||
|
||||
class OptionsCest {
|
||||
|
||||
/**
|
||||
* @var OptionsRoute
|
||||
*/
|
||||
private $route;
|
||||
|
||||
public function _before(FunctionalTester $I) {
|
||||
$this->route = new OptionsRoute($I);
|
||||
}
|
||||
|
||||
public function testRecaptchaPublicKey(FunctionalTester $I) {
|
||||
$I->wantTo('Get recaptcha public key');
|
||||
|
||||
$this->route->get();
|
||||
$I->canSeeResponseCodeIs(200);
|
||||
$I->canSeeResponseIsJson();
|
||||
$I->canSeeResponseContainsJson([
|
||||
'reCaptchaPublicKey' => 'public-key',
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user