public function testStarterCommandWithoutStarter() { $status = $this->app['Illuminate\\Contracts\\Console\\Kernel']->handle($input = new \Symfony\Component\Console\Input\ArrayInput(['command' => 'laracogs:starter', '--no-interaction' => true]), $output = new \Symfony\Component\Console\Output\BufferedOutput()); $this->assertTrue(strpos($output->fetch(), 'You cancelled the laracogs starter') > 0); }
public function testBootstrapCommandWithoutStarter() { $status = $this->app['Illuminate\\Contracts\\Console\\Kernel']->handle($input = new \Symfony\Component\Console\Input\ArrayInput(['command' => 'laracogs:bootstrap', '--no-interaction' => true]), $output = new \Symfony\Component\Console\Output\BufferedOutput()); $this->assertContains('php artisan laracogs:starter', $output->fetch()); }