create(); $server = Server::factory()->create(['team_id' => $team->id]); $destination = $server->standaloneDockers()->firstOrFail(); $project = Project::factory()->create(['team_id' => $team->id]); $service = Service::factory()->create([ 'docker_compose_raw' => '', 'docker_compose' => "services:\n app:\n image: nginx:alpine\n", 'server_id' => $server->id, 'destination_id' => $destination->id, 'destination_type' => $destination->getMorphClass(), 'environment_id' => $project->environments()->firstOrFail()->id, ]); expect($service->networks())->toBeInstanceOf(Collection::class)->toBeEmpty(); $commands = ensureProxyNetworksExist($server)->implode("\n"); expect($commands) ->toContain("docker network inspect 'coolify'") ->not->toContain("docker network inspect ''"); });