Fix api url

This commit is contained in:
Constantin Graf
2024-10-09 17:19:26 +02:00
committed by Constantin Graf
parent ddf11b394d
commit d9925d632e
4 changed files with 11 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ class SelfHostCheckForUpdateCommandTest extends TestCase
{
// Arrange
Http::fake([
'https://app.solidtime.io/api/check-for-update' => Http::response(['version' => '1.2.3'], 200),
'https://app.solidtime.io/api/v1/ping/version' => Http::response(['version' => '1.2.3'], 200),
]);
// Act
@@ -40,7 +40,7 @@ class SelfHostCheckForUpdateCommandTest extends TestCase
{
// Arrange
Http::fake([
'https://app.solidtime.io/api/check-for-update' => Http::response(null, 500),
'https://app.solidtime.io/api/v1/ping/version' => Http::response(null, 500),
]);
// Act
@@ -56,7 +56,7 @@ class SelfHostCheckForUpdateCommandTest extends TestCase
{
// Arrange
Http::fake([
'https://app.solidtime.io/api/check-for-update' => function (): void {
'https://app.solidtime.io/api/v1/ping/version' => function (): void {
throw new ConnectionException('Connection timed out');
},
]);