File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 118118 "extra" : {
119119 "laravel" : {
120120 "dont-discover" : [
121- " laravel/telescope"
121+ " laravel/telescope" ,
122+ " nwidart/laravel-modules"
122123 ]
123124 }
124125 },
Original file line number Diff line number Diff line change 99use App \Enums \TimeFormat ;
1010use Illuminate \Support \Facades \Facade ;
1111use Illuminate \Support \ServiceProvider ;
12+ use Nwidart \Modules \LaravelModulesServiceProvider ;
1213
1314return [
1415
197198 App \Providers \FortifyServiceProvider::class,
198199 App \Providers \JetstreamServiceProvider::class,
199200 // Warning: Do not add TelescopeServiceProvider here since it is already conditionally registered in AppServiceProvider
201+ LaravelModulesServiceProvider::class,
200202 ])->toArray (),
201203
202204 /*
Original file line number Diff line number Diff line change @@ -21,13 +21,17 @@ abstract class TestCase extends BaseTestCase
2121{
2222 use CreatesApplication;
2323
24+ protected bool $ mockBillingContract = true ;
25+
2426 protected function setUp (): void
2527 {
2628 parent ::setUp ();
2729 Mail::fake ();
2830 LogFake::bind ();
2931 Http::preventStrayRequests ();
30- $ this ->actAsOrganizationWithoutSubscriptionAndWithoutTrial ();
32+ if ($ this ->mockBillingContract ) {
33+ $ this ->actAsOrganizationWithoutSubscriptionAndWithoutTrial ();
34+ }
3135 // Note: The following line can be used to test timezone edge cases.
3236 // $this->travelTo(Carbon::now()->timezone('Europe/Vienna')->setHour(0)->setMinute(59)->setSecond(0));
3337 }
You can’t perform that action at this time.
0 commit comments