| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function testCreate() :void |
||
| 13 | { |
||
| 14 | $config = [ |
||
| 15 | 'invoiceninja' => [] |
||
| 16 | ]; |
||
| 17 | $containerMock = $this->createMock(ContainerInterface::class); |
||
| 18 | |||
| 19 | $containerMock->expects(self::once()) |
||
| 20 | ->method('get') |
||
| 21 | ->with(self::stringContains('Config')) |
||
| 22 | ->willReturn($config); |
||
| 23 | |||
| 24 | $factory = new AuthOptionsFactory(); |
||
| 25 | self::assertInstanceOf(AuthOptionsFactory::class, $factory); |
||
| 26 | |||
| 27 | $authOptions = $factory($containerMock, 'test'); |
||
| 28 | self::assertInstanceOf(AuthOptionsInterface::class, $authOptions); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |