<?php

use App\Models\Journalist;
use App\Models\PartnerMedia;
use Illuminate\Foundation\Testing\RefreshDatabase;

uses(RefreshDatabase::class);

test('journalist belongs to partner media', function () {
    $media = PartnerMedia::factory()->create();
    $journalist = Journalist::factory()->create(['partner_media_id' => $media->id]);

    expect($journalist->partnerMedia->id)->toBe($media->id);
});
