| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function accessTokenRequestValid(ApiTester $I): void |
||
| 22 | { |
||
| 23 | $I->wantTo('Request a new access token.'); |
||
| 24 | $I->amHttpAuthenticated('testclient', 'testpass'); |
||
| 25 | |||
| 26 | $I->sendPOST('/oauth2/token', [ |
||
| 27 | 'grant_type' => 'client_credentials', |
||
| 28 | ]); |
||
| 29 | |||
| 30 | $I->seeResponseCodeIs(HttpCode::OK); |
||
| 31 | $I->seeResponseIsJson(); |
||
| 32 | $I->seeResponseMatchesJsonType([ |
||
| 33 | 'access_token' => 'string:regex(/[0-9a-f]{40}/)', |
||
| 34 | ]); |
||
| 58 |