public storeSingle ( array $info ) : |
||
$info | array | |
return |
public function storeSingle(array $info)
{
return $this->notification->create($info);
}
/** @test */ function it_send_a_single_notification() { $notificationToSend = $this->buildNotification(); $notification = $this->notificationRepo->storeSingle($notificationToSend); $this->assertEquals($notificationToSend['to_id'], $notification->to_id); $this->assertEquals($notificationToSend['to_type'], $notification->to_type); }