fire() public méthode

Fire method for fire listeners of logic.
public fire ( string $key, string $categoryName, mixed | null $values = [] ) : mixed | null
$key string
$categoryName string
$values mixed | null
Résultat mixed | null
 /** @test */
 public function it_fire_an_event_sending_multiple_notifications()
 {
     $this->dispatcher->fire('notify@userMultiple', 'activation');
     $notification = \Fenos\Notifynder\Models\Notification::all();
     $this->assertCount(2, $notification);
 }