1 | <?php |
||
7 | use SlayerBirden\DataFlowServer\Domain\Entities\User; |
||
8 | |||
9 | class DeleteConfigCest |
||
10 | { |
||
11 | public function _before(ApiTester $I) |
||
21 | |||
22 | public function deleteConfiguration(ApiTester $I) |
||
37 | |||
38 | public function deleteNonExistingConfiguration(ApiTester $I) |
||
39 | { |
||
40 | $I->wantTo('delete non-existing db configuration'); |
||
41 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
42 | $I->sendDELETE('/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.