| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function testRegisterAuthorizationServer() |
||
| 19 | { |
||
| 20 | /** @var m\Mock|HelloServiceProvider $provider */ |
||
| 21 | $provider = \Mockery::mock(HelloServiceProvider::class)->makePartial()->shouldAllowMockingProtectedMethods(); |
||
| 22 | $provider->shouldReceive('createAuthorizationServer')->andReturn(\Mockery::mock(AuthorizationServer::class)); |
||
| 23 | $provider->shouldReceive('registerGrants'); |
||
| 24 | |||
| 25 | $container = new Container(); |
||
| 26 | $provider->setContainer($container); |
||
| 27 | $provider->registerAuthorizationServer(); |
||
| 28 | |||
| 29 | self::assertInstanceOf(AuthorizationServer::class, $container->get('hello.server')); |
||
| 30 | } |
||
| 32 |