We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function testExecute() |
||
| 22 | { |
||
| 23 | $client = static::createClient(['test_case' => 'connection']); |
||
| 24 | $kernel = $client->getKernel(); |
||
| 25 | |||
| 26 | $application = new Application($kernel); |
||
| 27 | $application->add(new GraphDumpSchemaCommand()); |
||
| 28 | |||
| 29 | $command = $application->find('graph:dump-schema'); |
||
| 30 | $file = $kernel->getCacheDir().'/schema.yml'; |
||
| 31 | |||
| 32 | $commandTester = new CommandTester($command); |
||
| 33 | $commandTester->execute( |
||
| 34 | [ |
||
| 35 | 'command' => $command->getName(), |
||
| 36 | '--file' => $file, |
||
| 37 | ] |
||
| 38 | ); |
||
| 39 | |||
| 40 | $this->assertEquals(0, $commandTester->getStatusCode()); |
||
| 41 | $this->assertEquals(file_get_contents(__DIR__.'/schema.yml'), file_get_contents($file)); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |