code style fix

add command tests
This commit is contained in:
Saeed Vaziry
2023-09-02 16:41:42 +02:00
parent 71f9dabc24
commit e1eb42059f
135 changed files with 1859 additions and 135 deletions

View File

@ -56,7 +56,7 @@ public function test_delete_ssh_key()
$this->assertDatabaseHas('server_ssh_keys', [
'server_id' => $this->server->id,
'ssh_key_id' => $sshKey->id,
'status' => SshKeyStatus::DELETING
'status' => SshKeyStatus::DELETING,
]);
Bus::assertDispatched(DeleteSshKeyFromServer::class);
@ -77,7 +77,7 @@ public function test_add_new_ssh_key()
$this->assertDatabaseHas('server_ssh_keys', [
'server_id' => $this->server->id,
'status' => SshKeyStatus::ADDING
'status' => SshKeyStatus::ADDING,
]);
Bus::assertDispatched(DeploySshKeyToServer::class);
@ -103,7 +103,7 @@ public function test_add_existing_key()
$this->assertDatabaseHas('server_ssh_keys', [
'server_id' => $this->server->id,
'status' => SshKeyStatus::ADDING
'status' => SshKeyStatus::ADDING,
]);
Bus::assertDispatched(DeploySshKeyToServer::class);