create(); $this->assertTrue($reminder->contact()->exists()); } /** @test */ public function it_has_many_user_notification_channels(): void { $reminder = ContactReminder::factory()->create(); $userNotificationChannel = UserNotificationChannel::factory()->create(); $reminder->userNotificationChannels()->sync([$userNotificationChannel->id => ['scheduled_at' => Carbon::now()]]); $this->assertTrue($reminder->userNotificationChannels()->exists()); } }