diff --git a/test/Sentry/Features/NotificationsIntegrationTest.php b/test/Sentry/Features/NotificationsIntegrationTest.php index 8f9d3df9..dfee35d5 100644 --- a/test/Sentry/Features/NotificationsIntegrationTest.php +++ b/test/Sentry/Features/NotificationsIntegrationTest.php @@ -10,6 +10,10 @@ class NotificationsIntegrationTest extends TestCase { + protected $defaultSetupConfig = [ + 'sentry.tracing.views' => false, + ]; + public function testSpanIsRecorded(): void { $span = $this->sendNotificationAndRetrieveSpan(); diff --git a/test/Sentry/TestCase.php b/test/Sentry/TestCase.php index b6766421..dd3fe916 100644 --- a/test/Sentry/TestCase.php +++ b/test/Sentry/TestCase.php @@ -31,6 +31,8 @@ abstract class TestCase extends LaravelTestCase // or use the `$this->resetApplicationWithConfig([ /* config */ ]);` helper method ]; + protected $defaultSetupConfig = []; + /** @var array */ protected static $lastSentryEvents = []; @@ -61,6 +63,10 @@ protected function defineEnvironment($app): void $config->set('sentry.dsn', 'https://publickey@sentry.dev/123'); } + foreach ($this->defaultSetupConfig as $key => $value) { + $config->set($key, $value); + } + foreach ($this->setupConfig as $key => $value) { $config->set($key, $value); }