app['config']['app.debug'] = true; $config = new IgnitionConfig([]); $this->assertTrue($config->getEnableRunnableSolutions()); } /** @test */ public function it_disables_runnable_solutions_in_production_mode() { $this->app['config']['app.debug'] = false; $config = new IgnitionConfig([]); $this->assertFalse($config->getEnableRunnableSolutions()); } /** @test */ public function it_prioritizes_config_value_over_debug_mode() { $this->app['config']['app.debug'] = true; $config = new IgnitionConfig([ 'enable_runnable_solutions' => false, ]); $this->assertFalse($config->getEnableRunnableSolutions()); } /** @test */ public function it_disables_share_report_when_app_has_not_finished_booting() { // Create an app but don't run the bootstrappers, so it is in booting state $bootingApp = $this->resolveApplication(); $this->resolveApplicationBindings($bootingApp); $this->resolveApplicationExceptionHandler($bootingApp); $this->resolveApplicationCore($bootingApp); $this->resolveApplicationConfiguration($bootingApp); $this->resolveApplicationHttpKernel($bootingApp); $this->resolveApplicationConsoleKernel($bootingApp); Container::setInstance($bootingApp); $config = new IgnitionConfig([]); $this->assertFalse($config->getEnableShareButton()); } }