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

Commit

Permalink
Renamed the migration file on publish & loadMigrationsFrom()
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Aug 13, 2020
1 parent 1227bc8 commit 65ae998
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/WebSocketsServiceProvider.php
Expand Up @@ -26,7 +26,7 @@ public function boot()
], 'config');

$this->publishes([
__DIR__.'/../database/migrations/create_websockets_statistics_entries_table.php.stub' => database_path('migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php'),
__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'),
], 'migrations');

$this
Expand Down
6 changes: 2 additions & 4 deletions tests/TestCase.php
Expand Up @@ -34,6 +34,8 @@ public function setUp(): void
$this->channelManager,
Mockery::mock(Browser::class)
));

$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
}

protected function getPackageProviders($app)
Expand All @@ -54,10 +56,6 @@ protected function getEnvironmentSetUp($app)
'enable_statistics' => true,
],
]);

include_once __DIR__.'/../database/migrations/create_websockets_statistics_entries_table.php.stub';

(new \CreateWebSocketsStatisticsEntriesTable())->up();
}

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

0 comments on commit 65ae998

Please sign in to comment.