-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathInstallDbTest.php
More file actions
91 lines (59 loc) · 1.78 KB
/
Copy pathInstallDbTest.php
File metadata and controls
91 lines (59 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
declare(strict_types=1);
namespace DrevOps\Vortex\Tests\Functional;
use DrevOps\Vortex\Tests\Traits\Steps\StepAhoyTrait;
use DrevOps\Vortex\Tests\Traits\Steps\StepDatabaseTrait;
use DrevOps\Vortex\Tests\Traits\Steps\StepEnvironmentTrait;
use DrevOps\Vortex\Tests\Traits\Steps\StepFrontendTrait;
use DrevOps\Vortex\Tests\Traits\Steps\StepServicesTrait;
use DrevOps\Vortex\Tests\Traits\Steps\StepTestTrait;
use DrevOps\Vortex\Tests\Traits\Steps\StepLintTrait;
/**
* Tests DB-driven workflow.
*/
class InstallDbTest extends FunctionalTestCase {
use StepAhoyTrait;
use StepDatabaseTrait;
use StepEnvironmentTrait;
use StepFrontendTrait;
use StepLintTrait;
use StepServicesTrait;
use StepTestTrait;
protected function setUp(): void {
parent::setUp();
$this->substepDownloadDb();
}
/**
* Test complete DB-driven workflow.
*/
public function testDbDrivenWorkflow(): void {
$this->stepBuild();
$this->stepAhoyLogin();
// State-less tests.
$this->assertFilesTrackedInGit();
$this->stepAhoyCli();
$this->stepEnvChanges();
$this->stepTimezone();
$this->stepAhoyComposer();
$this->stepAhoyDrush();
$this->stepAhoyInfo();
$this->stepAhoyContainerLogs();
// State-full tests.
$this->stepAhoyImportDb();
$this->stepAhoyExportDb();
$this->stepAhoyExportDb('mydb.sql');
$this->stepAhoyImportDb('.data/mydb.sql');
$this->stepAhoyProvision();
$this->stepAhoyLint();
$this->stepAhoyTest();
$this->stepAhoyFei();
$this->stepAhoyFe();
$this->stepAhoyDebug();
$this->stepSolr();
// Run this test as a last one to make sure that there is no concurrency
// issues with enabled Valkey.
$this->stepRedis();
$this->stepAhoyReset();
$this->stepAhoyResetHard();
}
}