| 1 | <?php |
||
| 12 | |||
| 13 | class SetupTransportsCommandFactoryTest extends TestCase |
||
| 14 | { |
||
| 15 | use ProphecyTrait; |
||
| 16 | |||
| 17 | public function testFactory(): void |
||
| 18 | { |
||
| 19 | $container = $this->prophesize(ContainerInterface::class); |
||
| 20 | |||
| 21 | $container->has('config')->willReturn(true); |
||
| 22 | $container->get('config')->willReturn([ |
||
| 23 | 'messenger' => [ |
||
| 24 | 'transports' => [], |
||
| 25 | ], |
||
| 26 | ]); |
||
| 27 | |||
| 28 | $factory = new SetupTransportsCommandFactory(); |
||
| 29 | |||
| 30 | $service = $factory($container->reveal()); |
||
| 31 | |||
| 32 | $this->assertInstanceOf(SetupTransportsCommand::class, $service); |
||
| 35 |