| 1 | <?php |
||
| 6 | use SlayerBirden\DataFlowServer\Domain\Entities\User; |
||
| 7 | |||
| 8 | class DeleteUserCest |
||
| 9 | { |
||
| 10 | public function _before(ApiTester $I) |
||
| 19 | |||
| 20 | public function deleteUser(ApiTester $I) |
||
| 35 | |||
| 36 | public function deleteNonExistingUser(ApiTester $I) |
||
| 37 | { |
||
| 38 | $I->wantTo('delete non-existing user'); |
||
| 39 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
| 40 | $I->sendDELETE('/user/0'); |
||
| 41 | $I->seeResponseCodeIs(HttpCode::NOT_FOUND); |
||
| 42 | $I->seeResponseContainsJson([ |
||
| 43 | 'success' => false, |
||
| 44 | 'data' => [ |
||
| 45 | 'user' => null |
||
| 46 | ] |
||
| 47 | ]); |
||
| 48 | } |
||
| 50 |
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.