/** * Bootstrap the application events. * * @return void */ public function boot(CoreContract $core) { $this->loadServiceProviders('core', $this->providers); $this->loadViewsFrom(__DIR__ . '/../resources/views/core', 'atlas.core'); if (!$core->isInstalled()) { return $this->loadServiceProviders('install', [Installer::class]); } $core->boot(); }
function it_should_not_boot_the_core_if_atlas_is_not_installed(\Atlas\CoreContract $core) { $core->isInstalled()->willReturn(false); $core->boot()->shouldNotBeCalled(); $this->boot($core); }