Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 65ae998

Browse files
committed
Renamed the migration file on publish & loadMigrationsFrom()
1 parent 1227bc8 commit 65ae998

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/WebSocketsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function boot()
2626
], 'config');
2727

2828
$this->publishes([
29-
__DIR__.'/../database/migrations/create_websockets_statistics_entries_table.php.stub' => database_path('migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php'),
29+
__DIR__.'/../database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php' => database_path('migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php'),
3030
], 'migrations');
3131

3232
$this

tests/TestCase.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function setUp(): void
3434
$this->channelManager,
3535
Mockery::mock(Browser::class)
3636
));
37+
38+
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
3739
}
3840

3941
protected function getPackageProviders($app)
@@ -54,10 +56,6 @@ protected function getEnvironmentSetUp($app)
5456
'enable_statistics' => true,
5557
],
5658
]);
57-
58-
include_once __DIR__.'/../database/migrations/create_websockets_statistics_entries_table.php.stub';
59-
60-
(new \CreateWebSocketsStatisticsEntriesTable())->up();
6159
}
6260

6361
protected function getWebSocketConnection(string $url = '/?appKey=TestKey'): Connection

0 commit comments

Comments
 (0)