Skip to content

Commit bdd0290

Browse files
update
1 parent 644bfd5 commit bdd0290

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

web/tests/Unit/HSCreateTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Http\Middleware\ApiKeyMiddleware;
66
use App\Installers\Server\Applications\PHPInstaller;
7+
use App\Jobs\ApacheBuild;
78
use App\Models\Database;
89
use App\Models\DatabaseUser;
910
use App\Models\Domain;
@@ -96,6 +97,9 @@ function test_create()
9697
]
9798
)->json();
9899

100+
$apacheBuild = new ApacheBuild();
101+
$apacheBuild->handle();
102+
99103
$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
100104
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');
101105

web/tests/Unit/HSNodeJSTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use App\Installers\Server\Applications\NodeJsInstaller;
77
use App\Installers\Server\Applications\PHPInstaller;
88
use App\Installers\Server\Applications\PythonInstaller;
9+
use App\Jobs\ApacheBuild;
910
use App\Models\Database;
1011
use App\Models\DatabaseUser;
1112
use App\Models\Domain;
@@ -140,6 +141,9 @@ function testCreate()
140141
]
141142
)->json();
142143

144+
$apacheBuild = new ApacheBuild();
145+
$apacheBuild->handle();
146+
143147
$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
144148
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');
145149

web/tests/Unit/HSPythonCreateTest.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ class HostingSubscriptionWithPythonCreateTest extends ActionTestCase
130130
]
131131
)->json();
132132

133+
$apacheBuild = new ApacheBuild();
134+
$apacheBuild->handle();
135+
133136
$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
134137
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');
135138

web/tests/Unit/MWHSCreateTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tests\Unit;
44

5+
use App\Jobs\ApacheBuild;
56
use App\Models\HostingPlan;
67
use Illuminate\Support\Facades\Artisan;
78
use Illuminate\Support\Str;
@@ -82,6 +83,9 @@ function testCreateInstallation()
8283
'domain' => $hostingSubscriptionDomain,
8384
])->json();
8485

86+
$apacheBuild = new ApacheBuild();
87+
$apacheBuild->handle();
88+
8589
if (!isset($callHostingSubscriptionStoreResponse['status'])) {
8690
$this->fail(json_encode($callHostingSubscriptionStoreResponse));
8791
}

web/tests/Unit/SecurityTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tests\Unit;
44

5+
use App\Jobs\ApacheBuild;
56
use Faker\Factory;
67
use Tests\Feature\Api\ActionTestCase;
78

@@ -110,6 +111,10 @@ public function testSecurity()
110111
'domain' => 'phyre-unit-test-'.$randId.'.com',
111112
]
112113
)->json();
114+
115+
$apacheBuild = new ApacheBuild();
116+
$apacheBuild->handle();
117+
113118
$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
114119
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');
115120
$secondHostingSubscription = $callHostingSubscriptionStoreResponse['data']['hostingSubscription'];

0 commit comments

Comments
 (0)