withFlareKey) { $app['config']['flare.key'] = 'some-key'; } } public function withFlareKey() { $this->withFlareKey = true; $this->refreshApplication(); } /** @test */ public function it_can_execute_the_test_command_when_a_flare_key_is_present() { $this->withFlareKey(); $testResult = $this->artisan('flare:test'); is_int($testResult) ? $this->assertSame(0, $testResult) : $testResult->assertExitCode(0); } }