startManualSync($tenant, $user); $run = $result->run; expect($result)->toBeInstanceOf(ProviderOperationStartResult::class) ->and($result->status)->toBe('started'); expect($run) ->and($run->tenant_id)->toBe($tenant->getKey()) ->and($run->user_id)->toBe($user->getKey()) ->and($run->type)->toBe('entra_group_sync') ->and($run->status)->toBe('queued') ->and($run->context['selection_key'] ?? null)->toBe('groups-v1:all') ->and($run->context['provider_connection_id'] ?? null)->toBeInt(); Queue::assertPushed(EntraGroupSyncJob::class); });