From d5db33e24e1e0149a6f55d80927754e07fdf4769 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Fri, 26 Apr 2024 23:30:52 +0300 Subject: [PATCH] update --- web/Modules/Microweber/PostInstall.php | 3 --- web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/Modules/Microweber/PostInstall.php b/web/Modules/Microweber/PostInstall.php index d911df8..5966b17 100644 --- a/web/Modules/Microweber/PostInstall.php +++ b/web/Modules/Microweber/PostInstall.php @@ -10,9 +10,6 @@ class PostInstall extends ModulePostInstall public $supportLog = false; public function run() { - $version = new Version(); - $version->checkForUpdates(); - return true; } } diff --git a/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php b/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php index fa8e5cd..a2fe4df 100644 --- a/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php +++ b/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php @@ -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,