Skip to content

Commit a5f53e5

Browse files
[11.x] Add assertion for check provider added to provider.php (#50049)
* [11.x] Add test for check provider added to file when use make command * fix style
1 parent c3f2a05 commit a5f53e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Integration/Generators/ProviderMakeCommandTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ public function testItCanGenerateServiceProviderFile()
2020
'public function register()',
2121
'public function boot()',
2222
], 'app/Providers/FooServiceProvider.php');
23+
24+
$this->assertEquals(require $this->app->getBootstrapProvidersPath(), [
25+
'App\Providers\FooServiceProvider',
26+
]);
2327
}
2428
}

0 commit comments

Comments
 (0)