function let() { $this->beConstructedWith([Notification::success('It is successful'), Notification::error('It is an error')]); }
/** * @return Notifications */ private function createNotifications() { return new Notifications([Notification::success('It is successful'), Notification::error('It is an error'), Notification::warning('It is a warning'), Notification::info('It is info')]); }