format('Ymd_his'); $host = 'testing-host'; // Assert there's no containers start with coolify_test_* $processResult = coolifyProcess($areThereCoolifyTestContainers, $host); $containers = Output::containerList($processResult->output()); expect($containers)->toBeEmpty(); // start a container nginx -d --name = $containerName $processResult = coolifyProcess("docker run -d --name {$containerName} nginx", $host); expect($processResult->successful())->toBeTrue(); // docker ps name = $container $processResult = coolifyProcess($areThereCoolifyTestContainers, $host); $containers = Output::containerList($processResult->output()); expect($containers->where('Names', $containerName)->count())->toBe(1); // Stop testing containers $processResult = coolifyProcess("docker stop $(docker ps --filter='name={$coolifyNamePrefix}*' -q)", $host); expect($processResult->successful())->toBeTrue(); });