create(); $rejection = RejectionReason::factory()->create([ 'rejectable_type' => Report::class, 'rejectable_id' => $report->id, 'reason' => 'Invalid link', ]); expect($rejection->reason)->toBe('Invalid link'); expect($rejection->rejectable)->toBeInstanceOf(Report::class); });