This commit is contained in:
Bozhidar 2024-04-26 23:30:52 +03:00
parent c37a6226ae
commit d5db33e24e
2 changed files with 4 additions and 3 deletions

View file

@ -10,9 +10,6 @@ class PostInstall extends ModulePostInstall
public $supportLog = false;
public function run()
{
$version = new Version();
$version->checkForUpdates();
return true;
}
}

View file

@ -5,6 +5,7 @@ namespace Tests\Unit;
use App\Models\HostingPlan;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Str;
use Modules\Microweber\Filament\Clusters\Microweber\Pages\Version;
use Tests\Feature\Api\ActionTestCase;
class MicroweberHostingSubscriptionCreateTest extends ActionTestCase
@ -16,6 +17,9 @@ class MicroweberHostingSubscriptionCreateTest extends ActionTestCase
Artisan::call('phyre:install-module Microweber');
$version = new Version();
$version->checkForUpdates();
$random = rand(1000, 9999);
$callHostingPlanStoreResponse = $this->callApiAuthorizedRouteAction('api.hosting-plans.store',[
'name' => 'Unit Test Microweber Hosting Plan #' . $random,