Skip to content

Commit

Permalink
Include Inertia servicep provider in tests if available
Browse files Browse the repository at this point in the history
  • Loading branch information
wimski committed Jun 3, 2022
1 parent eaa0ccf commit 3431143
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/Integration/AbstractIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@ protected function setUp(): void
*/
protected function getPackageProviders($app): array
{
return [
$providers = [
NovaCoreServiceProvider::class,
NovaServiceProvider::class,
PaperclipServiceProvider::class,
];

if (class_exists('Inertia\\ServiceProvider')) {
$providers[] = 'Inertia\\ServiceProvider';
}

return $providers;
}

protected function defineDatabaseMigrations(): void
Expand Down

0 comments on commit 3431143

Please sign in to comment.