/** * Constructor. * * @param \Cartalyst\Alerts\Native\AlertsBootstrapper $bootstrapper * @return void */ public function __construct(AlertsBootstrapper $bootstrapper = null) { if ($bootstrapper === null) { $bootstrapper = new AlertsBootstrapper(); } $this->alerts = $bootstrapper->createAlerts(); }
/** @test */ public function it_can_retrieve_bootstrapper_config() { $this->assertSame(['default' => 'view'], AlertsBootstrapper::getConfig()); }