Closed krwu closed 4 years ago
There should be a method console() which returns an instance of Spiral\Console\Console.
console()
Spiral\Console\Console
After merge this PR, $this->runCommand can be used at any test method. Like:
$this->runCommand
public function testInteractWithConsole(): void { $output = $this->runCommand('views:reset'); $this->assertStringContainsString('cache', $output); }
This PR can Close #27
Thank you
There should be a method
console()
which returns an instance ofSpiral\Console\Console
.After merge this PR,
$this->runCommand
can be used at any test method. Like:This PR can Close #27