I was having the same issue a few minutes ago, this is what I did:
// base_model
public function fireEvent($event, $args)
{
Event::fire($event, $args);
}
The following line:
Event::shouldReceive('fire') ->once() ->with( ['student.create', Mockery::any()] );
change to
Event::shouldReceive('fire') ->once() ->withArgs( ['student.create', Mockery::any()] );
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community