cleanup before release (#391)

This commit is contained in:
Saeed Vaziry
2024-12-13 20:02:43 +01:00
committed by GitHub
parent d91fa4061c
commit 0d12dd0c69
27 changed files with 649 additions and 899 deletions

View File

@ -43,10 +43,7 @@ public function test_get_server(): void
]);
}
/**
* @dataProvider createData
*/
public function test_create_server(string $type): void
public function test_create_server(): void
{
Sanctum::actingAs($this->user, ['read', 'write']);
@ -55,7 +52,6 @@ public function test_create_server(string $type): void
$this->json('POST', route('api.projects.servers.create', [
'project' => $this->user->current_project_id,
]), [
'type' => $type,
'provider' => ServerProvider::CUSTOM,
'name' => 'test',
'ip' => '1.1.1.1',
@ -68,7 +64,7 @@ public function test_create_server(string $type): void
->assertSuccessful()
->assertJsonFragment([
'name' => 'test',
'type' => $type,
'type' => ServerType::REGULAR,
]);
}
@ -110,12 +106,4 @@ public function test_upgrade_server(): void
]))
->assertNoContent();
}
public static function createData(): array
{
return [
[ServerType::REGULAR],
[ServerType::DATABASE],
];
}
}