Skip to content

Commit

Permalink
[11.x] Add assertion for check provider added to provider.php (#50049)
Browse files Browse the repository at this point in the history
* [11.x] Add test for check provider added to file when use make command

* fix style
  • Loading branch information
saeedhosseiinii authored Feb 12, 2024
1 parent c3f2a05 commit a5f53e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Integration/Generators/ProviderMakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ public function testItCanGenerateServiceProviderFile()
'public function register()',
'public function boot()',
], 'app/Providers/FooServiceProvider.php');

$this->assertEquals(require $this->app->getBootstrapProvidersPath(), [
'App\Providers\FooServiceProvider',
]);
}
}

0 comments on commit a5f53e5

Please sign in to comment.