| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function deleteUser(ApiTester $I) |
||
| 22 | { |
||
| 23 | $I->wantTo('delete user'); |
||
| 24 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
| 25 | $I->sendDELETE('/user/2'); |
||
| 26 | $I->seeResponseCodeIs(HttpCode::OK); |
||
| 27 | $I->seeResponseContainsJson([ |
||
| 28 | 'success' => true, |
||
| 29 | 'data' => [ |
||
| 30 | 'user' => [ |
||
| 31 | 'email' => '[email protected]', |
||
| 32 | ] |
||
| 33 | ] |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | |||
| 51 |
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.