From 68986ed94315e03f2e0a83fa79fc60bc1b5f452d Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 30 Apr 2024 11:07:37 +0300 Subject: [PATCH] update --- .github/workflows/app-code-coverage.yml | 1 - .github/workflows/app-unit-test.yml | 1 - web/tests/Unit/DockerTest.php | 6 +++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/app-code-coverage.yml b/.github/workflows/app-code-coverage.yml index a230792..dcdcd52 100644 --- a/.github/workflows/app-code-coverage.yml +++ b/.github/workflows/app-code-coverage.yml @@ -63,7 +63,6 @@ jobs: phyre-php -v cd /usr/local/phyre/web/ - sudo touch /usr/local/phyre/web/storage/installed sudo chmod -R 777 vendor composer test:coverage diff --git a/.github/workflows/app-unit-test.yml b/.github/workflows/app-unit-test.yml index d08340a..151a127 100644 --- a/.github/workflows/app-unit-test.yml +++ b/.github/workflows/app-unit-test.yml @@ -43,7 +43,6 @@ jobs: sudo COMPOSER_ALLOW_SUPERUSER=1 phyre-php composer.phar install sudo /phyre-panel/install_web.sh - sudo touch /usr/local/phyre/web/storage/installed sudo phyre-php artisan test compile-phyre-web-panel: diff --git a/web/tests/Unit/DockerTest.php b/web/tests/Unit/DockerTest.php index 99c6d83..150e807 100644 --- a/web/tests/Unit/DockerTest.php +++ b/web/tests/Unit/DockerTest.php @@ -22,6 +22,8 @@ class DockerTest extends TestCase ini_set('memory_limit', '-1'); ini_set('max_execution_time', 0); + $this->actingAs(User::factory()->create()); + $modulesTest = Livewire::test(Modules::class); $modulesTest->call('openInstallModal', 'Docker'); @@ -42,8 +44,6 @@ class DockerTest extends TestCase $findModule = Module::where('name', 'Docker')->first(); $this->assertNotEmpty($findModule); - $this->actingAs(User::factory()->create()); - $dockerImage = 'nginx'; $dockerCatalogTest = Livewire::test(DockerCatalog::class); @@ -73,7 +73,7 @@ class DockerTest extends TestCase $this->assertNotEmpty($pullLog); $this->assertStringContainsString('DONE!', $pullLog); - + $createDockerContainerTest = Livewire::test(CreateDockerContainer::class); $createDockerContainerTest->assertSee('Create Docker Container');