artisan('2fauth:check-db-connection') ->assertExitCode(1); } /** * @test */ // public function test_CheckDbConnection_without_db_returns_false() // { // DB::shouldReceive('connection', 'getPDO') // ->andThrow(new \Exception()); // $this->artisan('2fauth:check-db-connection') // ->assertExitCode(0); // } }