Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function testCall(): void |
||
18 | { |
||
19 | $input = new ArrayInput([], new InputDefinition([])); |
||
20 | $output = new BufferedOutput(); |
||
21 | $output->setVerbosity(OutputInterface::VERBOSITY_DEBUG); |
||
22 | |||
23 | //let's delete the lock file |
||
24 | $schemaFilePath = Configuration::getDefaultLockFilePath(); |
||
25 | if (file_exists($schemaFilePath)) { |
||
26 | unlink($schemaFilePath); |
||
27 | } |
||
28 | (new GenerateCommand($this->getConfiguration()))->run($input, $output); |
||
29 | $result = $output->fetch(); |
||
30 | |||
31 | $this->assertContains('Finished regenerating DAOs and beans', $result); |
||
32 | //Check that the lock file was generated |
||
33 | $this->assertFileExists($schemaFilePath); |
||
34 | } |
||
36 |