create(); $campaign = AdCampaign::create([ 'tenant_id' => $tenant->id, 'name' => 'C', 'mode' => AdCampaign::MODE_MANUAL, 'audience_days' => 10, 'client_cpm_rub' => '120.00', ]); $job = AdCreativeJob::create([ 'tenant_id' => $tenant->id, 'campaign_id' => $campaign->id, 'status' => AdCreativeJob::STATUS_QUEUED, 'snapshot_before' => [111 => [300, 250]], ]); $fresh = $job->fresh(); expect($fresh->status)->toBe('queued') ->and($fresh->attempts)->toBe(0) ->and($fresh->snapshot_before)->toBe(['111' => [300, 250]]) ->and($fresh->failure_reason)->toBeNull(); });