| 1 | <?php |
||
| 7 | use SlayerBirden\DataFlowServer\Domain\Entities\User; |
||
| 8 | |||
| 9 | class GetConfigCest |
||
| 10 | { |
||
| 11 | public function _before(ApiTester $I) |
||
| 21 | |||
| 22 | public function getConfiguration(ApiTester $I) |
||
| 37 | |||
| 38 | public function getNonExistingConfiguration(ApiTester $I) |
||
| 39 | { |
||
| 40 | $I->wantTo('get non-existing db configuration'); |
||
| 41 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
| 42 | $I->sendGET('/config/0'); |
||
| 43 | $I->seeResponseCodeIs(HttpCode::NOT_FOUND); |
||
| 44 | $I->seeResponseContainsJson([ |
||
| 45 | 'success' => false, |
||
| 46 | 'data' => [ |
||
| 47 | 'configuration' => null |
||
| 48 | ] |
||
| 49 | ]); |
||
| 50 | } |
||
| 52 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.