We are sending a slack message to our team channel hence not using a notifiable instance. This is how I did it-
Notification::route('slack', env('SLACK_URL'))
->notify(new StaffNotification());
And in StaffNotification
public function toSlack() {
return (new SlackMessage)->content('New Staff Message.');
}
How should I test StaffNotification as all the assert available are accepting the first parameter as notifiable?