mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
update
This commit is contained in:
parent
4eb361646a
commit
b3c9d77861
2 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue