@@ -11,6 +11,30 @@ class TestCase extends Orchestra
11
11
{
12
12
use RefreshDatabase;
13
13
14
+ public function getEnvironmentSetUp ($ app )
15
+ {
16
+ config ()->set ('app.key ' , 'base64:EWcFBKBT8lKlGK8nQhTHY+wg19QlfmbhtO9Qnn3NfcA= ' );
17
+
18
+ config ()->set ('database.default ' , 'testing ' );
19
+
20
+ /*
21
+ $migration = include __DIR__.'/../database/migrations/create_laravel-pay-pocket_table.php.stub';
22
+ $migration->up();
23
+ */
24
+
25
+ $ migration = include __DIR__ .'/database/migrations/create_users_tables.php ' ;
26
+ $ migration ->up ();
27
+
28
+ $ migration = include __DIR__ .'/../database/migrations/create_wallets_logs_table.php.stub ' ;
29
+ $ migration ->up ();
30
+
31
+ $ migration = include __DIR__ .'/../database/migrations/create_wallets_table.php.stub ' ;
32
+ $ migration ->up ();
33
+
34
+ $ migration = include __DIR__ .'/../database/migrations/add_notes_and_reference_columns_to_wallets_logs_table.php.stub ' ;
35
+ $ migration ->up ();
36
+ }
37
+
14
38
protected function setUp (): void
15
39
{
16
40
parent ::setUp ();
@@ -34,28 +58,4 @@ protected function getPackageProviders($app)
34
58
LaravelPayPocketServiceProvider::class,
35
59
];
36
60
}
37
-
38
- public function getEnvironmentSetUp ($ app )
39
- {
40
- config ()->set ('app.key ' , 'base64:EWcFBKBT8lKlGK8nQhTHY+wg19QlfmbhtO9Qnn3NfcA= ' );
41
-
42
- config ()->set ('database.default ' , 'testing ' );
43
-
44
- /*
45
- $migration = include __DIR__.'/../database/migrations/create_laravel-pay-pocket_table.php.stub';
46
- $migration->up();
47
- */
48
-
49
- $ migration = include __DIR__ .'/database/migrations/create_users_tables.php ' ;
50
- $ migration ->up ();
51
-
52
- $ migration = include __DIR__ .'/../database/migrations/create_wallets_logs_table.php.stub ' ;
53
- $ migration ->up ();
54
-
55
- $ migration = include __DIR__ .'/../database/migrations/create_wallets_table.php.stub ' ;
56
- $ migration ->up ();
57
-
58
- $ migration = include __DIR__ .'/../database/migrations/update_wallets_logs_table.php.stub ' ;
59
- $ migration ->up ();
60
- }
61
61
}
0 commit comments