From 3a6ca82b26eaa3b81ddc931be2a26afa21e3464e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Tue, 3 Oct 2023 11:34:50 +0300 Subject: [PATCH] fixed tests --- app/Traits/Cloud.php | 2 +- app/Traits/Plans.php | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Traits/Cloud.php b/app/Traits/Cloud.php index d0de6a74c..954f7fcd1 100644 --- a/app/Traits/Cloud.php +++ b/app/Traits/Cloud.php @@ -41,6 +41,6 @@ trait Cloud // @deprecated 3.1 public function isCloud() { - return request()->isCloud(); + return request()->isCloudHost(); } } diff --git a/app/Traits/Plans.php b/app/Traits/Plans.php index a3acc180f..c6c5df4c7 100644 --- a/app/Traits/Plans.php +++ b/app/Traits/Plans.php @@ -58,7 +58,7 @@ trait Plans public function getPlanLimitByType($type): object { - if (! config('app.installed')) { + if (! config('app.installed') || (env_is_testing() && app()->runningInConsole())) { $limit = new \stdClass(); $limit->action_status = true; diff --git a/composer.json b/composer.json index ecb738776..fdd258697 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "software", "online" ], - "license": "BSL", + "license": "BUSL-1.1", "type": "project", "require": { "php": "^8.1",