Skip to content

Commit

Permalink
Disable view tracing for notification tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Apr 9, 2024
1 parent 4974afa commit 8fec8cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Sentry/Features/NotificationsIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

class NotificationsIntegrationTest extends TestCase
{
protected $defaultSetupConfig = [
'sentry.tracing.views' => false,
];

public function testSpanIsRecorded(): void
{
$span = $this->sendNotificationAndRetrieveSpan();
Expand Down
6 changes: 6 additions & 0 deletions test/Sentry/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ abstract class TestCase extends LaravelTestCase
// or use the `$this->resetApplicationWithConfig([ /* config */ ]);` helper method
];

protected $defaultSetupConfig = [];

/** @var array<int, array{0: Event, 1: EventHint|null}> */
protected static $lastSentryEvents = [];

Expand Down Expand Up @@ -61,6 +63,10 @@ protected function defineEnvironment($app): void
$config->set('sentry.dsn', 'https://[email protected]/123');
}

foreach ($this->defaultSetupConfig as $key => $value) {
$config->set($key, $value);
}

foreach ($this->setupConfig as $key => $value) {
$config->set($key, $value);
}
Expand Down

0 comments on commit 8fec8cc

Please sign in to comment.