@@ -13,8 +13,6 @@ final class EnvironmentTest extends TestCase
13
13
14
14
/**
15
15
* Test the commandExists() method.
16
- *
17
- * @covers \Davereid\DrupalEnvironment\Environment::commandExists
18
16
*/
19
17
public function testCommandExists (): void
20
18
{
@@ -75,6 +73,7 @@ public function providerEnvironment(): array
75
73
'isCircleCi ' => false ,
76
74
'isGitHubWorkflow ' => false ,
77
75
'isGitLabCi ' => false ,
76
+ 'isTugboat ' => false ,
78
77
'isPantheon ' => false ,
79
78
'isProduction ' => false ,
80
79
'isStaging ' => false ,
@@ -98,6 +97,7 @@ public function providerEnvironment(): array
98
97
'isCircleCi ' => false ,
99
98
'isGitHubWorkflow ' => false ,
100
99
'isGitLabCi ' => false ,
100
+ 'isTugboat ' => false ,
101
101
'isPantheon ' => false ,
102
102
'isProduction ' => true ,
103
103
'isStaging ' => false ,
@@ -122,6 +122,7 @@ public function providerEnvironment(): array
122
122
'isCircleCi ' => false ,
123
123
'isGitHubWorkflow ' => false ,
124
124
'isGitLabCi ' => false ,
125
+ 'isTugboat ' => false ,
125
126
'isPantheon ' => false ,
126
127
'isProduction ' => false ,
127
128
'isStaging ' => false ,
@@ -142,6 +143,7 @@ public function providerEnvironment(): array
142
143
'isCircleCi ' => false ,
143
144
'isGitHubWorkflow ' => false ,
144
145
'isGitLabCi ' => false ,
146
+ 'isTugboat ' => false ,
145
147
'isPantheon ' => true ,
146
148
'isProduction ' => true ,
147
149
'isStaging ' => false ,
@@ -167,6 +169,7 @@ public function providerEnvironment(): array
167
169
'isCircleCi ' => false ,
168
170
'isGitHubWorkflow ' => false ,
169
171
'isGitLabCi ' => false ,
172
+ 'isTugboat ' => false ,
170
173
'isPantheon ' => true ,
171
174
'isProduction ' => false ,
172
175
'isStaging ' => true ,
@@ -192,6 +195,7 @@ public function providerEnvironment(): array
192
195
'isCircleCi ' => false ,
193
196
'isGitHubWorkflow ' => false ,
194
197
'isGitLabCi ' => false ,
198
+ 'isTugboat ' => false ,
195
199
'isPantheon ' => true ,
196
200
'isProduction ' => false ,
197
201
'isStaging ' => false ,
@@ -217,6 +221,7 @@ public function providerEnvironment(): array
217
221
'isCircleCi ' => false ,
218
222
'isGitHubWorkflow ' => false ,
219
223
'isGitLabCi ' => false ,
224
+ 'isTugboat ' => false ,
220
225
'isPantheon ' => true ,
221
226
'isProduction ' => false ,
222
227
'isStaging ' => false ,
@@ -242,6 +247,7 @@ public function providerEnvironment(): array
242
247
'isCircleCi ' => false ,
243
248
'isGitHubWorkflow ' => false ,
244
249
'isGitLabCi ' => false ,
250
+ 'isTugboat ' => false ,
245
251
'isPantheon ' => true ,
246
252
'isProduction ' => false ,
247
253
'isStaging ' => false ,
@@ -263,6 +269,7 @@ public function providerEnvironment(): array
263
269
'isCircleCi ' => false ,
264
270
'isGitHubWorkflow ' => false ,
265
271
'isGitLabCi ' => false ,
272
+ 'isTugboat ' => false ,
266
273
'isPantheon ' => true ,
267
274
'isProduction ' => false ,
268
275
'isStaging ' => false ,
@@ -278,6 +285,32 @@ public function providerEnvironment(): array
278
285
],
279
286
],
280
287
],
288
+ 'tugboat ' => [
289
+ [
290
+ 'TUGBOAT_PREVIEW_NAME ' => 'phpunit ' ,
291
+ ],
292
+ [
293
+ 'getEnvironment ' => 'local ' ,
294
+ 'isAcquia ' => false ,
295
+ 'isCircleCi ' => false ,
296
+ 'isGitHubWorkflow ' => false ,
297
+ 'isGitLabCi ' => false ,
298
+ 'isTugboat ' => true ,
299
+ 'isPantheon ' => true ,
300
+ 'isProduction ' => false ,
301
+ 'isStaging ' => false ,
302
+ 'isDevelopment ' => false ,
303
+ 'isPreview ' => true ,
304
+ 'isMultidev ' => false ,
305
+ 'isCi ' => false ,
306
+ 'isLocal ' => true ,
307
+ 'getIndicatorConfig ' => [
308
+ 'name ' => 'Preview ' ,
309
+ 'bg_color ' => '#ffffff ' ,
310
+ 'fg_color ' => '#990055 ' ,
311
+ ],
312
+ ],
313
+ ],
281
314
'circleci ' => [
282
315
[
283
316
'CI ' => 'true ' ,
@@ -289,6 +322,7 @@ public function providerEnvironment(): array
289
322
'isCircleCi ' => true ,
290
323
'isGitHubWorkflow ' => false ,
291
324
'isGitLabCi ' => false ,
325
+ 'isTugboat ' => false ,
292
326
'isPantheon ' => false ,
293
327
'isProduction ' => false ,
294
328
'isStaging ' => false ,
@@ -310,6 +344,7 @@ public function providerEnvironment(): array
310
344
'isCircleCi ' => false ,
311
345
'isGitHubWorkflow ' => true ,
312
346
'isGitLabCi ' => false ,
347
+ 'isTugboat ' => false ,
313
348
'isPantheon ' => false ,
314
349
'isProduction ' => false ,
315
350
'isStaging ' => false ,
@@ -331,6 +366,7 @@ public function providerEnvironment(): array
331
366
'isCircleCi ' => false ,
332
367
'isGitHubWorkflow ' => false ,
333
368
'isGitLabCi ' => true ,
369
+ 'isTugboat ' => false ,
334
370
'isPantheon ' => false ,
335
371
'isProduction ' => false ,
336
372
'isStaging ' => false ,
@@ -351,6 +387,7 @@ public function providerEnvironment(): array
351
387
'isCircleCi ' => false ,
352
388
'isGitHubWorkflow ' => false ,
353
389
'isGitLabCi ' => false ,
390
+ 'isTugboat ' => false ,
354
391
'isPantheon ' => false ,
355
392
'isProduction ' => false ,
356
393
'isStaging ' => false ,
@@ -375,6 +412,7 @@ public function providerEnvironment(): array
375
412
'isCircleCi ' => false ,
376
413
'isGitHubWorkflow ' => false ,
377
414
'isGitLabCi ' => false ,
415
+ 'isTugboat ' => false ,
378
416
'isPantheon ' => false ,
379
417
'isProduction ' => false ,
380
418
'isStaging ' => false ,
0 commit comments