Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed May 16, 2024
1 parent 644bfd5 commit bdd0290
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/tests/Unit/HSCreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -96,6 +97,9 @@ function test_create()
]
)->json();

$apacheBuild = new ApacheBuild();
$apacheBuild->handle();

$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');

Expand Down
4 changes: 4 additions & 0 deletions web/tests/Unit/HSNodeJSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -140,6 +141,9 @@ function testCreate()
]
)->json();

$apacheBuild = new ApacheBuild();
$apacheBuild->handle();

$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');

Expand Down
3 changes: 3 additions & 0 deletions web/tests/Unit/HSPythonCreateTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ class HostingSubscriptionWithPythonCreateTest extends ActionTestCase
]
)->json();

$apacheBuild = new ApacheBuild();
$apacheBuild->handle();

$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');

Expand Down
4 changes: 4 additions & 0 deletions web/tests/Unit/MWHSCreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Tests\Unit;

use App\Jobs\ApacheBuild;
use App\Models\HostingPlan;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Str;
Expand Down Expand Up @@ -82,6 +83,9 @@ function testCreateInstallation()
'domain' => $hostingSubscriptionDomain,
])->json();

$apacheBuild = new ApacheBuild();
$apacheBuild->handle();

if (!isset($callHostingSubscriptionStoreResponse['status'])) {
$this->fail(json_encode($callHostingSubscriptionStoreResponse));
}
Expand Down
5 changes: 5 additions & 0 deletions web/tests/Unit/SecurityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Tests\Unit;

use App\Jobs\ApacheBuild;
use Faker\Factory;
use Tests\Feature\Api\ActionTestCase;

Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit bdd0290

Please sign in to comment.