mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
code style fix
add command tests
This commit is contained in:
@ -35,7 +35,7 @@ public function test_create_firewall_rule(): void
|
||||
Bus::assertDispatched(AddToServer::class);
|
||||
|
||||
$this->assertDatabaseHas('firewall_rules', [
|
||||
'port' => '1234'
|
||||
'port' => '1234',
|
||||
]);
|
||||
}
|
||||
|
||||
@ -44,7 +44,7 @@ public function test_see_firewall_rules(): void
|
||||
$this->actingAs($this->user);
|
||||
|
||||
$rule = FirewallRule::factory()->create([
|
||||
'server_id' => $this->server->id
|
||||
'server_id' => $this->server->id,
|
||||
]);
|
||||
|
||||
Livewire::test(FirewallRulesList::class, ['server' => $this->server])
|
||||
@ -61,7 +61,7 @@ public function test_delete_firewall_rule(): void
|
||||
$this->actingAs($this->user);
|
||||
|
||||
$rule = FirewallRule::factory()->create([
|
||||
'server_id' => $this->server->id
|
||||
'server_id' => $this->server->id,
|
||||
]);
|
||||
|
||||
Livewire::test(FirewallRulesList::class, ['server' => $this->server])
|
||||
@ -73,7 +73,7 @@ public function test_delete_firewall_rule(): void
|
||||
|
||||
$this->assertDatabaseHas('firewall_rules', [
|
||||
'id' => $rule->id,
|
||||
'status' => FirewallRuleStatus::DELETING
|
||||
'status' => FirewallRuleStatus::DELETING,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user