| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testCreate() :void |
||
| 18 | { |
||
| 19 | $containerMock = $this->createMock(ContainerInterface::class); |
||
| 20 | $containerMock->expects(self::once()) |
||
| 21 | ->method('get') |
||
| 22 | ->with(self::stringContains(ObjectService::class)) |
||
| 23 | ->willReturn($this->createMock(ObjectServiceInterface::class)); |
||
| 24 | |||
| 25 | $factory = new ProductManagerFactory(); |
||
| 26 | $result = $factory($containerMock, 'test'); |
||
| 27 | self::assertInstanceOf(ProductManagerInterface::class, $result); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |