File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use App \Http \Middleware \ApiKeyMiddleware ;
6
6
use App \Installers \Server \Applications \PHPInstaller ;
7
+ use App \Jobs \ApacheBuild ;
7
8
use App \Models \Database ;
8
9
use App \Models \DatabaseUser ;
9
10
use App \Models \Domain ;
@@ -96,6 +97,9 @@ function test_create()
96
97
]
97
98
)->json ();
98
99
100
+ $ apacheBuild = new ApacheBuild ();
101
+ $ apacheBuild ->handle ();
102
+
99
103
$ this ->assertArrayHasKey ('status ' , $ callHostingSubscriptionStoreResponse );
100
104
$ this ->assertTrue ($ callHostingSubscriptionStoreResponse ['status ' ] == 'ok ' );
101
105
Original file line number Diff line number Diff line change 6
6
use App \Installers \Server \Applications \NodeJsInstaller ;
7
7
use App \Installers \Server \Applications \PHPInstaller ;
8
8
use App \Installers \Server \Applications \PythonInstaller ;
9
+ use App \Jobs \ApacheBuild ;
9
10
use App \Models \Database ;
10
11
use App \Models \DatabaseUser ;
11
12
use App \Models \Domain ;
@@ -140,6 +141,9 @@ function testCreate()
140
141
]
141
142
)->json ();
142
143
144
+ $ apacheBuild = new ApacheBuild ();
145
+ $ apacheBuild ->handle ();
146
+
143
147
$ this ->assertArrayHasKey ('status ' , $ callHostingSubscriptionStoreResponse );
144
148
$ this ->assertTrue ($ callHostingSubscriptionStoreResponse ['status ' ] == 'ok ' );
145
149
Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ class HostingSubscriptionWithPythonCreateTest extends ActionTestCase
130
130
]
131
131
)->json();
132
132
133
+ $apacheBuild = new ApacheBuild();
134
+ $apacheBuild->handle();
135
+
133
136
$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
134
137
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');
135
138
Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests \Unit ;
4
4
5
+ use App \Jobs \ApacheBuild ;
5
6
use App \Models \HostingPlan ;
6
7
use Illuminate \Support \Facades \Artisan ;
7
8
use Illuminate \Support \Str ;
@@ -82,6 +83,9 @@ function testCreateInstallation()
82
83
'domain ' => $ hostingSubscriptionDomain ,
83
84
])->json ();
84
85
86
+ $ apacheBuild = new ApacheBuild ();
87
+ $ apacheBuild ->handle ();
88
+
85
89
if (!isset ($ callHostingSubscriptionStoreResponse ['status ' ])) {
86
90
$ this ->fail (json_encode ($ callHostingSubscriptionStoreResponse ));
87
91
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests \Unit ;
4
4
5
+ use App \Jobs \ApacheBuild ;
5
6
use Faker \Factory ;
6
7
use Tests \Feature \Api \ActionTestCase ;
7
8
@@ -110,6 +111,10 @@ public function testSecurity()
110
111
'domain ' => 'phyre-unit-test- ' .$ randId .'.com ' ,
111
112
]
112
113
)->json ();
114
+
115
+ $ apacheBuild = new ApacheBuild ();
116
+ $ apacheBuild ->handle ();
117
+
113
118
$ this ->assertArrayHasKey ('status ' , $ callHostingSubscriptionStoreResponse );
114
119
$ this ->assertTrue ($ callHostingSubscriptionStoreResponse ['status ' ] == 'ok ' );
115
120
$ secondHostingSubscription = $ callHostingSubscriptionStoreResponse ['data ' ]['hostingSubscription ' ];
You can’t perform that action at this time.
0 commit comments