create($tenant, $snapshot, $user); $run = OperationRun::query()->findOrFail($review->operation_run_id); expect($run->type)->toBe(OperationRunType::TenantReviewCompose->value) ->and(OperationCatalog::label((string) $run->type))->toBe('Review composition'); Queue::assertPushed(ComposeTenantReviewJob::class); $job = new ComposeTenantReviewJob((int) $review->getKey(), (int) $run->getKey()); app()->call([$job, 'handle']); $run->refresh(); expect($run->status)->toBe(OperationRunStatus::Completed->value) ->and($run->outcome)->toBe(OperationRunOutcome::Succeeded->value); Notification::assertSentTo($user, OperationRunCompleted::class); });