From 657fc7683f82ee5255208e700a6dd9cb5b4befc3 Mon Sep 17 00:00:00 2001 From: Constantin Graf Date: Tue, 29 Oct 2024 14:37:21 +0100 Subject: [PATCH] Fix for tests --- .../Commands/SelfHost/SelfHostTelemetryCommandTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Console/Commands/SelfHost/SelfHostTelemetryCommandTest.php b/tests/Unit/Console/Commands/SelfHost/SelfHostTelemetryCommandTest.php index be436152..621b6b39 100644 --- a/tests/Unit/Console/Commands/SelfHost/SelfHostTelemetryCommandTest.php +++ b/tests/Unit/Console/Commands/SelfHost/SelfHostTelemetryCommandTest.php @@ -30,8 +30,11 @@ public function test_telemetry_sends_data_to_telemetry_endpoint_of_solidtime_clo $exitCode = $this->withoutMockingConsoleOutput()->artisan('self-host:telemetry'); // Assert - $this->assertSame(Command::SUCCESS, $exitCode); $output = Artisan::output(); + if ($exitCode !== Command::SUCCESS) { + dump($output); + } + $this->assertSame(Command::SUCCESS, $exitCode); $this->assertSame('', $output); }