mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
cleanup before release (#391)
This commit is contained in:
@ -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],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user