From df1fbba8d576b0233ed0579361089270429c2c53 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 30 Apr 2024 00:50:50 +0300 Subject: [PATCH] update --- web/pint.json | 3 --- web/tests/Unit/BackupTest.php | 3 +++ web/tests/Unit/DockerTest.php | 3 +++ web/tests/Unit/HostingSubscriptionBackupTest.php | 4 ++++ 4 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 web/pint.json diff --git a/web/pint.json b/web/pint.json deleted file mode 100644 index 93061b6..0000000 --- a/web/pint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "preset": "laravel" -} diff --git a/web/tests/Unit/BackupTest.php b/web/tests/Unit/BackupTest.php index 5e8a365..9e0d6cd 100644 --- a/web/tests/Unit/BackupTest.php +++ b/web/tests/Unit/BackupTest.php @@ -16,6 +16,9 @@ class BackupTest extends ActionTestCase { public function testFullBackup() { + ini_set('memory_limit', '-1'); + ini_set('max_execution_time', 0); + Artisan::call('phyre:run-backup'); $findLastBackup = Backup::orderBy('id', 'asc')->first(); diff --git a/web/tests/Unit/DockerTest.php b/web/tests/Unit/DockerTest.php index cbb60ec..1675744 100644 --- a/web/tests/Unit/DockerTest.php +++ b/web/tests/Unit/DockerTest.php @@ -17,6 +17,9 @@ class DockerTest extends TestCase { public function testDockerImages() { + ini_set('memory_limit', '-1'); + ini_set('max_execution_time', 0); + $docker = new PostInstall(); $docker->setLogFile('/tmp/phyrepanel-docker-install.log'); $docker->run(); diff --git a/web/tests/Unit/HostingSubscriptionBackupTest.php b/web/tests/Unit/HostingSubscriptionBackupTest.php index 8e4c1ea..21956a4 100644 --- a/web/tests/Unit/HostingSubscriptionBackupTest.php +++ b/web/tests/Unit/HostingSubscriptionBackupTest.php @@ -23,6 +23,9 @@ class HostingSubscriptionBackupTest extends ActionTestCase { public function testFullBackup() { + ini_set('memory_limit', '-1'); + ini_set('max_execution_time', 0); + $chs = $this->_createHostingSubscription(); Artisan::call('phyre:run-hosting-subscriptions-backup'); @@ -110,6 +113,7 @@ class HostingSubscriptionBackupTest extends ActionTestCase private function _createHostingSubscription() { + $customer = new Customer(); $customer->name = 'UnitBackupTest' . time(); $customer->email = 'UnitBackupTest' . time() . '@unit-test.com';