SocialiteProviders\Manager\ServiceProvider::boot PHP Method

boot() public method

public boot ( )
    public function boot()
    {
        $socialiteWasCalled = app(SocialiteWasCalled::class);
        event($socialiteWasCalled);
    }

Usage Example

 /**
  * @test
  */
 public function it_fires_an_event()
 {
     $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');
     $socialiteWasCalled = m::mock('SocialiteProviders\\Manager\\SocialiteWasCalled');
     $event = m::mock('Illuminate\\Contracts\\Events\\Dispatcher');
     $event->shouldReceive('fire')->with($socialiteWasCalled);
     $sp = new ServiceProvider($app);
     $sp->boot($event, $socialiteWasCalled);
 }
ServiceProvider