| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function accessTokenRequestInvalid(ApiTester $I): void |
||
| 41 | { |
||
| 42 | $I->wantTo('Request a new access token with invalid credentials.'); |
||
| 43 | $I->amHttpAuthenticated('testclient', 'wrongpass'); |
||
| 44 | |||
| 45 | $I->sendPOST('/oauth2/token', [ |
||
| 46 | 'grant_type' => 'client_credentials', |
||
| 47 | ]); |
||
| 48 | |||
| 49 | $I->seeResponseCodeIs(HttpCode::BAD_REQUEST); |
||
| 50 | $I->seeResponseIsJson(); |
||
| 51 | |||
| 52 | $I->seeResponseMatchesJsonType([ |
||
| 53 | 'name' => 'string', |
||
| 54 | 'message' => 'string', |
||
| 55 | ]); |
||
| 58 |