| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function testExecute(): void |
||
| 24 | { |
||
| 25 | $kernel = static::createKernel(); |
||
| 26 | $application = new Application($kernel); |
||
| 27 | $command = $application->find('sonata:easy-extends:dump-mapping'); |
||
| 28 | $commandTester = new CommandTester($command); |
||
| 29 | $commandTester->execute([ |
||
| 30 | 'manager' => 'default', |
||
| 31 | 'model' => Block::class, |
||
| 32 | ]); |
||
| 33 | |||
| 34 | $output = $commandTester->getDisplay(); |
||
| 35 | $this->assertStringContainsString('<?php', $output); |
||
| 36 | $this->assertStringContainsString('Block', $output); |
||
| 37 | } |
||
| 38 | |||
| 44 |