This commit is contained in:
Bozhidar 2024-04-30 00:50:50 +03:00
parent 30a1ed80d5
commit df1fbba8d5
4 changed files with 10 additions and 3 deletions

View file

@ -1,3 +0,0 @@
{
"preset": "laravel"
}

View file

@ -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();

View file

@ -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();

View file

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