Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testInvokeWillCreateARbCommentTableGatewayInstance() |
||
16 | { |
||
17 | $containerMock = $this->createMock(ContainerInterface::class); |
||
18 | $adapterMock = $this->createMock(Adapter::class); |
||
19 | |||
20 | $factory = new RbCommentTableGatewayFactory(); |
||
21 | |||
22 | // Expectations |
||
23 | $containerMock->expects($this->once()) |
||
24 | ->method('get') |
||
25 | ->with(Adapter::class) |
||
26 | ->willReturn($adapterMock); |
||
27 | |||
28 | $table = $factory($containerMock, 'RbCommentTableGateway'); |
||
29 | |||
30 | // Assertions |
||
31 | $this->assertInstanceOf(TableGateway::class, $table); |
||
32 | } |
||
33 | } |
||
34 |