diff --git a/tests/Feature/Views/CodebarAnalyticsPartialTest.php b/tests/Feature/Views/CodebarAnalyticsPartialTest.php index d796adb..0aff125 100644 --- a/tests/Feature/Views/CodebarAnalyticsPartialTest.php +++ b/tests/Feature/Views/CodebarAnalyticsPartialTest.php @@ -4,6 +4,9 @@ use Illuminate\Support\Facades\Config; +use function Pest\Laravel\get; +use function Pest\Laravel\withoutVite; + it('embeds the codebar analytics script in production', function () { Config::set('default.services.codebar_analytics.url', 'https://analytics.codebar.ch'); app()['env'] = 'production'; @@ -26,11 +29,11 @@ })->group('analytics'); it('embeds the codebar analytics script on zunscan.codebar.ch in production', function () { - $this->withoutVite(); + withoutVite(); Config::set('default.services.codebar_analytics.url', 'https://analytics.codebar.ch'); app()->detectEnvironment(fn () => 'production'); - $this->get('http://zunscan.codebar.ch/de-ch') + get('http://zunscan.codebar.ch/de-ch') ->assertOk() ->assertSee('', false); })->group('analytics');