Skip to content

Commit 4e7dc77

Browse files
Rename migration
1 parent 62b3b01 commit 4e7dc77

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

src/LaravelPayPocketServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function configurePackage(Package $package): void
2121
->hasMigrations(
2222
'create_wallets_logs_table',
2323
'create_wallets_table',
24-
'update_wallets_logs_table'
24+
'add_notes_and_reference_columns_to_wallets_logs_table'
2525
);
2626
}
2727

tests/TestCase.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@ class TestCase extends Orchestra
1111
{
1212
use RefreshDatabase;
1313

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+
1438
protected function setUp(): void
1539
{
1640
parent::setUp();
@@ -34,28 +58,4 @@ protected function getPackageProviders($app)
3458
LaravelPayPocketServiceProvider::class,
3559
];
3660
}
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-
}
6161
}

0 commit comments

Comments
 (0)