| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function userLoginFail(ApiTester $I) |
||
| 25 | { |
||
| 26 | $I->haveHttpHeader('content-type', 'application/json'); |
||
| 27 | $I->sendPOST('/login', [ |
||
| 28 | 'username' => 'demo', |
||
| 29 | 'password' => 'pass123456', |
||
| 30 | ]); |
||
| 31 | $I->seeResponseCodeIs(HttpCode::OK); // 200 |
||
| 32 | $I->seeResponseIsJson(); |
||
| 33 | $I->seeResponseContainsJson(['code' => ErrorCodes::INVALID_ARGUMENT_ERROR]); |
||
| 34 | } |
||
| 56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.