From 85502656da86271ed757ee8490fe9b108c76ad59 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Tue, 24 Sep 2024 08:09:09 +0200 Subject: [PATCH] Fix test class namespaces (#933) * Fix test class namespaces * fix stub * fix namespace * fix namespace --- test/Sentry/Console/AboutCommandIntegrationTest.php | 2 +- test/Sentry/EventHandler/AuthEventsTest.php | 2 +- test/Sentry/Features/ConsoleIntegrationTest.php | 2 +- test/Sentry/Features/ConsoleSchedulingIntegrationTest.php | 2 +- test/Sentry/Features/DatabaseIntegrationTest.php | 2 +- test/Sentry/Features/FolioPackageIntegrationTest.php | 8 ++++---- test/Sentry/Features/LogIntegrationTest.php | 2 +- test/Sentry/Features/NotificationsIntegrationTest.php | 2 +- test/Sentry/Features/QueueIntegrationTest.php | 2 +- test/Sentry/Features/RouteIntegrationTest.php | 2 +- test/Sentry/Http/LaravelRequestFetcherTest.php | 2 +- test/Sentry/Integration/LaravelContextIntegrationTest.php | 2 +- test/Sentry/Integration/ModelViolationReportersTest.php | 2 +- .../ServiceProviderWithEnvironmentFromConfigTest.php | 4 +--- ....Features.FolioPackageIntegrationUserModel].blade.php} | 0 15 files changed, 17 insertions(+), 19 deletions(-) rename test/stubs/folio/user/{[.Sentry.Features.FolioPackageIntegrationUserModel].blade.php => [.Sentry.Laravel.Tests.Features.FolioPackageIntegrationUserModel].blade.php} (100%) diff --git a/test/Sentry/Console/AboutCommandIntegrationTest.php b/test/Sentry/Console/AboutCommandIntegrationTest.php index 64419a56..e47cc172 100644 --- a/test/Sentry/Console/AboutCommandIntegrationTest.php +++ b/test/Sentry/Console/AboutCommandIntegrationTest.php @@ -1,6 +1,6 @@ get("/folio/user/{$user->id}")->assertOk(); - // This looks a little odd, but that is because we want to make the route model binding work in our tests - // normally this would look like `/folio/user/{User}` instead, see: https://laravel.com/docs/10.x/folio#route-model-binding. - $this->assertEquals('/folio/user/{.Sentry.Features.FolioPackageIntegrationUserModel}', Integration::getTransaction()); + // This looks a little odd, but that is because we want to make the route model binding work in our tests. + // Normally this would look like `/folio/user/{User}` instead, see: https://laravel.com/docs/10.x/folio#route-model-binding. + $this->assertEquals('/folio/user/{.Sentry.Laravel.Tests.Features.FolioPackageIntegrationUserModel}', Integration::getTransaction()); } } diff --git a/test/Sentry/Features/LogIntegrationTest.php b/test/Sentry/Features/LogIntegrationTest.php index 8c026fca..7d0aec81 100644 --- a/test/Sentry/Features/LogIntegrationTest.php +++ b/test/Sentry/Features/LogIntegrationTest.php @@ -1,6 +1,6 @@