app->instance(PaymentGateway::class, new FakeGateway); $this->app->instance(SubscriptionGateway::class, new FakeSubscriptionGateway); } protected function skipUnlessFortifyHas(string $feature, ?string $message = null): void { if (! Features::enabled($feature)) { $this->markTestSkipped($message ?? "Fortify feature [{$feature}] is not enabled."); } } }