File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace RonasIT \Support \Tests ;
4+
5+ use Illuminate \Support \Facades \Artisan ;
6+ use RonasIT \Support \EntityGeneratorServiceProvider ;
7+
8+ class ServiceProviderTest extends TestCase
9+ {
10+ public function testBoot ()
11+ {
12+ $ provider = new EntityGeneratorServiceProvider ($ this ->app );
13+ $ provider ->boot ();
14+
15+ $ finder = view ()->getFinder ();
16+
17+ $ this ->assertArrayHasKey ('make:entity ' , Artisan::all ());
18+
19+ $ this ->assertTrue (in_array (
20+ needle: getcwd () . '/vendor/orchestra/testbench-core/laravel/resources/views ' ,
21+ haystack: $ finder ->getPaths (),
22+ ));
23+
24+ $ this ->assertEquals (
25+ expected: [getcwd () . '/src/../config/entity-generator.php ' => 'vfs://root/config/entity-generator.php ' ],
26+ actual: EntityGeneratorServiceProvider::$ publishes ['RonasIT\Support\EntityGeneratorServiceProvider ' ],
27+ );
28+ }
29+ }
You can’t perform that action at this time.
0 commit comments