mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
update
This commit is contained in:
parent
2327b7d1ad
commit
70b51841eb
2 changed files with 12 additions and 7 deletions
|
@ -30,7 +30,7 @@ class BackupTest extends ActionTestCase
|
|||
|
||||
|
||||
$backupFinished = false;
|
||||
for ($i = 0; $i < 100; $i++) {
|
||||
for ($i = 0; $i < 400; $i++) {
|
||||
|
||||
Artisan::call('phyre:run-backup-checks');
|
||||
|
||||
|
@ -85,7 +85,7 @@ class BackupTest extends ActionTestCase
|
|||
|
||||
$findBackup = false;
|
||||
$backupCompleted = false;
|
||||
for ($i = 0; $i < 200; $i++) {
|
||||
for ($i = 0; $i < 400; $i++) {
|
||||
|
||||
Artisan::call('phyre:run-backup-checks');
|
||||
|
||||
|
|
|
@ -39,13 +39,16 @@ class HostingSubscriptionBackupTest extends ActionTestCase
|
|||
$this->assertSame($findLastBackup->backup_type, 'full');
|
||||
|
||||
$backupFinished = false;
|
||||
for ($i = 0; $i < 50; $i++) {
|
||||
for ($i = 0; $i < 100; $i++) {
|
||||
|
||||
Artisan::call('phyre:run-hosting-subscriptions-backup-checks');
|
||||
|
||||
$findLastBackup = HostingSubscriptionBackup::where('id', $findLastBackup->id)->first();
|
||||
$findLastBackup->checkBackup();
|
||||
if ($findLastBackup->status == BackupStatus::Completed) {
|
||||
$backupFinished = true;
|
||||
break;
|
||||
}
|
||||
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
|
@ -69,10 +72,12 @@ class HostingSubscriptionBackupTest extends ActionTestCase
|
|||
|
||||
$findBackup = false;
|
||||
$backupCompleted = false;
|
||||
for ($i = 0; $i < 50; $i++) {
|
||||
for ($i = 0; $i < 100; $i++) {
|
||||
|
||||
Artisan::call('phyre:run-hosting-subscriptions-backup-checks');
|
||||
|
||||
$findBackup = HostingSubscriptionBackup::where('id', $backupId)->first();
|
||||
if ($findBackup) {
|
||||
$status = $findBackup->checkBackup();
|
||||
if ($findBackup->status == BackupStatus::Completed) {
|
||||
$backupCompleted = true;
|
||||
break;
|
||||
|
@ -87,7 +92,7 @@ class HostingSubscriptionBackupTest extends ActionTestCase
|
|||
|
||||
$getFilesize = filesize($findBackup->file_path);
|
||||
$this->assertGreaterThan(0, $getFilesize);
|
||||
$this->assertSame($getFilesize, $findBackup->size);
|
||||
$this->assertSame($getFilesize, intval($findBackup->size));
|
||||
|
||||
Helpers::extractZip($findBackup->file_path, $findBackup->path . '/unit-test');
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue