mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
30a1ed80d5
commit
df1fbba8d5
4 changed files with 10 additions and 3 deletions
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"preset": "laravel"
|
|
||||||
}
|
|
|
@ -16,6 +16,9 @@ class BackupTest extends ActionTestCase
|
||||||
{
|
{
|
||||||
public function testFullBackup()
|
public function testFullBackup()
|
||||||
{
|
{
|
||||||
|
ini_set('memory_limit', '-1');
|
||||||
|
ini_set('max_execution_time', 0);
|
||||||
|
|
||||||
Artisan::call('phyre:run-backup');
|
Artisan::call('phyre:run-backup');
|
||||||
|
|
||||||
$findLastBackup = Backup::orderBy('id', 'asc')->first();
|
$findLastBackup = Backup::orderBy('id', 'asc')->first();
|
||||||
|
|
|
@ -17,6 +17,9 @@ class DockerTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testDockerImages()
|
public function testDockerImages()
|
||||||
{
|
{
|
||||||
|
ini_set('memory_limit', '-1');
|
||||||
|
ini_set('max_execution_time', 0);
|
||||||
|
|
||||||
$docker = new PostInstall();
|
$docker = new PostInstall();
|
||||||
$docker->setLogFile('/tmp/phyrepanel-docker-install.log');
|
$docker->setLogFile('/tmp/phyrepanel-docker-install.log');
|
||||||
$docker->run();
|
$docker->run();
|
||||||
|
|
|
@ -23,6 +23,9 @@ class HostingSubscriptionBackupTest extends ActionTestCase
|
||||||
{
|
{
|
||||||
public function testFullBackup()
|
public function testFullBackup()
|
||||||
{
|
{
|
||||||
|
ini_set('memory_limit', '-1');
|
||||||
|
ini_set('max_execution_time', 0);
|
||||||
|
|
||||||
$chs = $this->_createHostingSubscription();
|
$chs = $this->_createHostingSubscription();
|
||||||
|
|
||||||
Artisan::call('phyre:run-hosting-subscriptions-backup');
|
Artisan::call('phyre:run-hosting-subscriptions-backup');
|
||||||
|
@ -110,6 +113,7 @@ class HostingSubscriptionBackupTest extends ActionTestCase
|
||||||
|
|
||||||
private function _createHostingSubscription()
|
private function _createHostingSubscription()
|
||||||
{
|
{
|
||||||
|
|
||||||
$customer = new Customer();
|
$customer = new Customer();
|
||||||
$customer->name = 'UnitBackupTest' . time();
|
$customer->name = 'UnitBackupTest' . time();
|
||||||
$customer->email = 'UnitBackupTest' . time() . '@unit-test.com';
|
$customer->email = 'UnitBackupTest' . time() . '@unit-test.com';
|
||||||
|
|
Loading…
Reference in a new issue