delegate() public méthode

Associate events to categories.
public delegate ( array $delegation, $data = [] ) : mixed
$delegation array
$data
Résultat mixed
 /** @test */
 public function it_delete_2_notification_to_be_sent_trought_the_handler()
 {
     $this->dispatcher->delegate(['activation' => 'notify@userActivated', 'confirmation' => 'notify@userMultiple']);
     $notification = \Fenos\Notifynder\Models\Notification::all();
     $this->assertCount(3, $notification);
 }