| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | public function setUp() |
||
| 22 | { |
||
| 23 | $application = new Application(); |
||
| 24 | $application->add(new ProvideCommand()); |
||
| 25 | |||
| 26 | $command = $application->find('elasticsearch:provide'); |
||
| 27 | $this->commandTester = new CommandTester($command); |
||
| 28 | |||
| 29 | $this->handler = $this |
||
| 30 | ->getMockBuilder(Handler::class) |
||
| 31 | ->disableOriginalConstructor() |
||
| 32 | ->getMock() |
||
| 33 | ; |
||
| 34 | |||
| 35 | $container = $this->getMock(ContainerInterface::class); |
||
| 36 | |||
| 37 | $container |
||
| 38 | ->expects($this->once()) |
||
| 39 | ->method('get') |
||
| 40 | ->with('gbprod.elasticsearch_dataprovider.handler') |
||
| 41 | ->willReturn($this->handler) |
||
| 42 | ; |
||
| 43 | |||
| 44 | $command->setContainer($container); |
||
| 45 | } |
||
| 46 | public function testExecute() |
||
| 60 | } |