storeMultiple() public méthode

Save multiple notifications sent at once.
public storeMultiple ( array $notifications ) : mixed
$notifications array
Résultat mixed
 /** @test */
 function it_send_multiple_notification()
 {
     $notificationsToSend[0] = $this->buildNotification();
     $notificationsToSend[1] = $this->buildNotification();
     $storeMultipleNotificaations = $this->notificationRepo->storeMultiple($notificationsToSend);
     $notifications = Notification::all();
     $this->assertCount(2, $notifications);
     $this->assertEquals(2, $storeMultipleNotificaations);
 }