mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Upgrade to Livewire 3 (#103)
* upgrade to livewire 3 * fix updater * fix modal events * fix modal events
This commit is contained in:
@ -39,7 +39,7 @@ public function test_delete_cronjob()
|
||||
Livewire::test(CronjobsList::class, ['server' => $this->server])
|
||||
->set('deleteId', $cronjob->id)
|
||||
->call('delete')
|
||||
->assertDispatchedBrowserEvent('confirmed', true);
|
||||
->assertDispatched('confirmed');
|
||||
}
|
||||
|
||||
public function test_create_cronjob()
|
||||
@ -51,7 +51,7 @@ public function test_create_cronjob()
|
||||
->set('user', 'vito')
|
||||
->set('frequency', '* * * * *')
|
||||
->call('create')
|
||||
->assertDispatchedBrowserEvent('created', true);
|
||||
->assertDispatched('created');
|
||||
|
||||
$this->assertDatabaseHas('cron_jobs', [
|
||||
'server_id' => $this->server->id,
|
||||
|
@ -39,7 +39,7 @@ public function test_delete_queue()
|
||||
Livewire::test(QueuesList::class, ['site' => $this->site])
|
||||
->set('deleteId', $queue->id)
|
||||
->call('delete')
|
||||
->assertDispatchedBrowserEvent('confirmed', true);
|
||||
->assertDispatched('confirmed');
|
||||
}
|
||||
|
||||
public function test_create_queue()
|
||||
@ -53,7 +53,7 @@ public function test_create_queue()
|
||||
->set('auto_restart', 1)
|
||||
->set('numprocs', 1)
|
||||
->call('create')
|
||||
->assertDispatchedBrowserEvent('created', true);
|
||||
->assertDispatched('created');
|
||||
|
||||
$this->assertDatabaseHas('queues', [
|
||||
'server_id' => $this->server->id,
|
||||
|
@ -51,7 +51,7 @@ public function test_delete_ssh_key()
|
||||
Livewire::test(ServerKeysList::class, ['server' => $this->server])
|
||||
->set('deleteId', $sshKey->id)
|
||||
->call('delete')
|
||||
->assertDispatchedBrowserEvent('confirmed');
|
||||
->assertDispatched('confirmed');
|
||||
|
||||
$this->assertDatabaseHas('server_ssh_keys', [
|
||||
'server_id' => $this->server->id,
|
||||
@ -73,7 +73,7 @@ public function test_add_new_ssh_key()
|
||||
->set('public_key', 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3CCnyBbpCgOJ0AWUSfBZ+mYAsYzcQDegPkBx1kyE0bXT1yX4+6uYx1Jh6NxWgLyaU0BaP4nsClrK1u5FojQHd8J7ycc0N3H8B+v2NPzj1Q6bFnl40saastONVm+d4edbCg9BowGAafLcf9ALsognqqOWQbK/QOpAhg25IAe47eiY3IjDGMHlsvaZkMtkDhT4t1mK8ZLjxw5vjyVYgINJefR981bIxMFrXy+0xBCsYOZxMIoAJsgCkrAGlI4kQHKv0SQVccSyTE1eziIZa5b3QUlXj8ogxMfK/EOD7Aoqinw652k4S5CwFs/LLmjWcFqCKDM6CSggWpB78DZ729O6zFvQS9V99/9SsSV7Qc5ML7B0DKzJ/tbHkaAE8xdZnQnZFVUegUMtUmjvngMaGlYsxkAZrUKsFRoh7xfXVkDyRBaBSslRNe8LFsXw9f7Q+3jdZ5vhGhmp+TBXTlgxApwR023411+ABE9y0doCx8illya3m2olEiiMZkRclgqsWFSk=')
|
||||
->call('add')
|
||||
->assertSuccessful()
|
||||
->assertDispatchedBrowserEvent('added');
|
||||
->assertDispatched('added');
|
||||
|
||||
$this->assertDatabaseHas('server_ssh_keys', [
|
||||
'server_id' => $this->server->id,
|
||||
@ -99,7 +99,7 @@ public function test_add_existing_key()
|
||||
->set('key_id', $sshKey->id)
|
||||
->call('add')
|
||||
->assertSuccessful()
|
||||
->assertDispatchedBrowserEvent('added');
|
||||
->assertDispatched('added');
|
||||
|
||||
$this->assertDatabaseHas('server_ssh_keys', [
|
||||
'server_id' => $this->server->id,
|
||||
|
@ -47,7 +47,7 @@ public function test_create_ssl()
|
||||
Livewire::test(CreateSsl::class, ['site' => $this->site])
|
||||
->set('type', SslType::LETSENCRYPT)
|
||||
->call('create')
|
||||
->assertDispatchedBrowserEvent('created');
|
||||
->assertDispatched('created');
|
||||
|
||||
$this->assertDatabaseHas('ssls', [
|
||||
'site_id' => $this->site->id,
|
||||
@ -71,7 +71,7 @@ public function test_delete_ssl()
|
||||
Livewire::test(SslsList::class, ['site' => $this->site])
|
||||
->set('deleteId', $ssl->id)
|
||||
->call('delete')
|
||||
->assertDispatchedBrowserEvent('confirmed');
|
||||
->assertDispatched('confirmed');
|
||||
|
||||
$this->assertDatabaseHas('ssls', [
|
||||
'id' => $ssl->id,
|
||||
|
Reference in New Issue
Block a user