mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-24 16:40:27 +00:00
Update DockerTest.php
This commit is contained in:
parent
1099285224
commit
43112842f8
1 changed files with 18 additions and 18 deletions
|
@ -100,23 +100,23 @@ class DockerTest extends TestCase
|
|||
$this->assertDatabaseHas(DockerContainer::class, [
|
||||
'name' => $dockerName,
|
||||
]);
|
||||
|
||||
$listDockerContainersTest = Livewire::test(ListDockerContainers::class);
|
||||
$listDockerContainersTest->assertSee($dockerName);
|
||||
|
||||
$findDockerContainer = DockerContainer::where('name', $dockerName)->first();
|
||||
|
||||
$editDockerContainersTest = Livewire::test(EditDockerContainer::class, [
|
||||
'record'=> $findDockerContainer->id
|
||||
]);
|
||||
$editDockerContainersTest->assertSee('Edit Docker Container');
|
||||
$editDockerContainersTest->callAction(DeleteAction::class);
|
||||
|
||||
$this->assertModelMissing($findDockerContainer);
|
||||
|
||||
|
||||
// Unistall docker
|
||||
$modulesTest = Livewire::test(Modules::class);
|
||||
$modulesTest->call('openUnistallModal', 'Docker');
|
||||
//
|
||||
// $listDockerContainersTest = Livewire::test(ListDockerContainers::class);
|
||||
// $listDockerContainersTest->assertSee($dockerName);
|
||||
//
|
||||
// $findDockerContainer = DockerContainer::where('name', $dockerName)->first();
|
||||
//
|
||||
// $editDockerContainersTest = Livewire::test(EditDockerContainer::class, [
|
||||
// 'record'=> $findDockerContainer->id
|
||||
// ]);
|
||||
// $editDockerContainersTest->assertSee('Edit Docker Container');
|
||||
// $editDockerContainersTest->callAction(DeleteAction::class);
|
||||
//
|
||||
// $this->assertModelMissing($findDockerContainer);
|
||||
//
|
||||
//
|
||||
// // Unistall docker
|
||||
// $modulesTest = Livewire::test(Modules::class);
|
||||
// $modulesTest->call('openUnistallModal', 'Docker');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue