diff --git a/web/tests/Unit/HSCreateTest.php b/web/tests/Unit/HSCreateTest.php index e75177f8..92591720 100644 --- a/web/tests/Unit/HSCreateTest.php +++ b/web/tests/Unit/HSCreateTest.php @@ -4,6 +4,7 @@ use App\Http\Middleware\ApiKeyMiddleware; use App\Installers\Server\Applications\PHPInstaller; +use App\Jobs\ApacheBuild; use App\Models\Database; use App\Models\DatabaseUser; use App\Models\Domain; @@ -96,6 +97,9 @@ function test_create() ] )->json(); + $apacheBuild = new ApacheBuild(); + $apacheBuild->handle(); + $this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse); $this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok'); diff --git a/web/tests/Unit/HSNodeJSTest.php b/web/tests/Unit/HSNodeJSTest.php index e4f021d9..552bbe9f 100644 --- a/web/tests/Unit/HSNodeJSTest.php +++ b/web/tests/Unit/HSNodeJSTest.php @@ -6,6 +6,7 @@ use App\Installers\Server\Applications\NodeJsInstaller; use App\Installers\Server\Applications\PHPInstaller; use App\Installers\Server\Applications\PythonInstaller; +use App\Jobs\ApacheBuild; use App\Models\Database; use App\Models\DatabaseUser; use App\Models\Domain; @@ -140,6 +141,9 @@ function testCreate() ] )->json(); + $apacheBuild = new ApacheBuild(); + $apacheBuild->handle(); + $this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse); $this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok'); diff --git a/web/tests/Unit/HSPythonCreateTest.txt b/web/tests/Unit/HSPythonCreateTest.txt index 4ded4945..cd9750eb 100644 --- a/web/tests/Unit/HSPythonCreateTest.txt +++ b/web/tests/Unit/HSPythonCreateTest.txt @@ -130,6 +130,9 @@ class HostingSubscriptionWithPythonCreateTest extends ActionTestCase ] )->json(); + $apacheBuild = new ApacheBuild(); + $apacheBuild->handle(); + $this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse); $this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok'); diff --git a/web/tests/Unit/MWHSCreateTest.php b/web/tests/Unit/MWHSCreateTest.php index 611bd7e8..76dfe048 100644 --- a/web/tests/Unit/MWHSCreateTest.php +++ b/web/tests/Unit/MWHSCreateTest.php @@ -2,6 +2,7 @@ namespace Tests\Unit; +use App\Jobs\ApacheBuild; use App\Models\HostingPlan; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Str; @@ -82,6 +83,9 @@ function testCreateInstallation() 'domain' => $hostingSubscriptionDomain, ])->json(); + $apacheBuild = new ApacheBuild(); + $apacheBuild->handle(); + if (!isset($callHostingSubscriptionStoreResponse['status'])) { $this->fail(json_encode($callHostingSubscriptionStoreResponse)); } diff --git a/web/tests/Unit/SecurityTest.php b/web/tests/Unit/SecurityTest.php index ae9fb44d..6dcf315f 100644 --- a/web/tests/Unit/SecurityTest.php +++ b/web/tests/Unit/SecurityTest.php @@ -2,6 +2,7 @@ namespace Tests\Unit; +use App\Jobs\ApacheBuild; use Faker\Factory; use Tests\Feature\Api\ActionTestCase; @@ -110,6 +111,10 @@ public function testSecurity() 'domain' => 'phyre-unit-test-'.$randId.'.com', ] )->json(); + + $apacheBuild = new ApacheBuild(); + $apacheBuild->handle(); + $this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse); $this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok'); $secondHostingSubscription = $callHostingSubscriptionStoreResponse['data']['hostingSubscription'];