| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testClientRegistrationManagementRuleSetAsDefault() |
||
| 29 | { |
||
| 30 | $clientId = ClientId::create('CLIENT_ID'); |
||
| 31 | $commandParameters = DataBag::create([]); |
||
| 32 | $rule = new ClientRegistrationManagementRule(); |
||
| 33 | $validatedParameters = $rule->handle($clientId, $commandParameters, DataBag::create([]), $this->getCallable()); |
||
| 34 | |||
| 35 | self::assertTrue($validatedParameters->has('registration_access_token')); |
||
| 36 | self::assertTrue($validatedParameters->has('registration_client_uri')); |
||
| 37 | self::assertEquals('https://www.example.com/client/CLIENT_ID', $validatedParameters->get('registration_client_uri')); |
||
| 38 | } |
||
| 39 | |||
| 50 |