| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ConsoleCest |
||
| 11 | { |
||
| 12 | public function testCommandYii(CliTester $I): void |
||
| 13 | { |
||
| 14 | $command = dirname(__DIR__, 2) . '/yii'; |
||
| 15 | $I->runShellCommand($command); |
||
| 16 | $I->seeInShellOutput('Yii Console'); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function testCommandFixtureAdd(CliTester $I): void |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testCommandListCommand(CliTester $I): void |
||
| 27 | { |
||
| 28 | $command = dirname(__DIR__, 2) . '/yii'; |
||
| 29 | $I->runShellCommand($command . ' list'); |
||
| 30 | $I->seeResultCodeIs(ExitCode::OK); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Clear all data created with testCommandFixtureAdd(). |
||
| 35 | * Clearing database prevents from getting errors during multiple continuous testing with other test, |
||
| 36 | * what are based on empty database (eg, BlogPageCest) |
||
| 37 | * |
||
| 38 | * @param \App\Tests\CliTester $I |
||
| 39 | */ |
||
| 40 | public function testCommandCycleSchemaClear(CliTester $I): void |
||
| 45 | } |
||
| 46 | } |
||
| 47 |