From b3c9d7786118e096b27a692dc747e2c5e880cf1a Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 14 May 2024 16:01:41 +0300 Subject: [PATCH] update --- .../Unit/HostingSubscriptionWithNodeJSCreateTest.php | 10 ++++++---- .../Unit/HostingSubscriptionWithPythonCreateTest.php | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/web/tests/Unit/HostingSubscriptionWithNodeJSCreateTest.php b/web/tests/Unit/HostingSubscriptionWithNodeJSCreateTest.php index 92f0729..8444a05 100644 --- a/web/tests/Unit/HostingSubscriptionWithNodeJSCreateTest.php +++ b/web/tests/Unit/HostingSubscriptionWithNodeJSCreateTest.php @@ -89,7 +89,7 @@ class HostingSubscriptionWithNodeJSCreateTest extends ActionTestCase $this->assertIsArray($callStoreResponse['errors']); // Create a customer - $randId = rand(1000, 9999); + $randId = rand(10000, 99999); $callCustomerStoreResponse = $this->callApiAuthorizedRouteAction( 'api.customers.store', [ @@ -108,19 +108,21 @@ class HostingSubscriptionWithNodeJSCreateTest extends ActionTestCase $customerId = $callCustomerStoreResponse['data']['customer']['id']; // Create a hosting subscription - $randId = rand(1000, 9999); + $randId = rand(10000, 99999); $hostingPlanId = null; $createHostingPlan = new HostingPlan(); $createHostingPlan->name = 'Phyre Unit Test #'.$randId; $createHostingPlan->description = 'Unit Test Hosting Plan'; - $createHostingPlan->disk_space = 1000; - $createHostingPlan->bandwidth = 1000; $createHostingPlan->default_server_application_type = 'apache_nodejs'; $createHostingPlan->default_server_application_settings = [ 'nodejs_version' => '20', ]; + $createHostingPlan->additional_services = []; + $createHostingPlan->features = []; + $createHostingPlan->limitations = []; $createHostingPlan->save(); + $hostingPlanId = $createHostingPlan->id; diff --git a/web/tests/Unit/HostingSubscriptionWithPythonCreateTest.php b/web/tests/Unit/HostingSubscriptionWithPythonCreateTest.php index 6adc72a..6d67c9e 100644 --- a/web/tests/Unit/HostingSubscriptionWithPythonCreateTest.php +++ b/web/tests/Unit/HostingSubscriptionWithPythonCreateTest.php @@ -109,12 +109,13 @@ class HostingSubscriptionWithPythonCreateTest extends ActionTestCase $createHostingPlan = new HostingPlan(); $createHostingPlan->name = 'Phyre Unit Test #'.$randId; $createHostingPlan->description = 'Unit Test Hosting Plan'; - $createHostingPlan->disk_space = 1000; - $createHostingPlan->bandwidth = 1000; $createHostingPlan->default_server_application_type = 'apache_python'; $createHostingPlan->default_server_application_settings = [ 'python_version' => '3.9', ]; + $createHostingPlan->additional_services = []; + $createHostingPlan->features = []; + $createHostingPlan->limitations = []; $createHostingPlan->save(); $hostingPlanId = $createHostingPlan->id;