1 | <?php |
||
7 | use SlayerBirden\DataFlowServer\Domain\Entities\User; |
||
8 | |||
9 | class UpdateConfigCest |
||
10 | { |
||
11 | public function _before(ApiTester $I) |
||
21 | |||
22 | public function updateConfiguration(ApiTester $I) |
||
41 | |||
42 | public function updateNonExistingConfig(ApiTester $I) |
||
58 | |||
59 | public function updateIncompleteConfig(ApiTester $I) |
||
60 | { |
||
61 | $I->wantTo('update incomplete db configuration'); |
||
62 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
63 | $I->sendPUT('/config/1', [ |
||
64 | 'title' => 'Test config', |
||
65 | ]); |
||
66 | $I->seeResponseCodeIs(HttpCode::BAD_REQUEST); |
||
67 | $I->seeResponseContainsJson([ |
||
68 | 'success' => false, |
||
69 | 'data' => [ |
||
70 | 'validation' => [ |
||
71 | [ |
||
72 | 'field' => 'user', |
||
73 | ] |
||
74 | ] |
||
75 | ] |
||
76 | ]); |
||
77 | } |
||
79 |
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.