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';