Skip to content

Commit 5cdbb8a

Browse files
committed
tests
1 parent 7875acc commit 5cdbb8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ClientReport/ClientReportAggregatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ protected function setUp(): void
2222
StubLogger::$logs = [];
2323
SentrySdk::init()->bindClient(new Client(new Options([
2424
'logger' => StubLogger::getInstance(),
25+
'default_integrations' => false,
2526
]), StubTransport::getInstance()));
2627
}
2728

@@ -70,7 +71,7 @@ public function testNegativeQuantityDiscarded(): void
7071
ClientReportAggregator::getInstance()->flush();
7172

7273
$this->assertEmpty(StubTransport::$events);
73-
$this->assertCount(1, StubLogger::$logs);
74+
$this->assertNotEmpty(StubLogger::$logs);
7475
$this->assertSame(['level' => 'debug', 'message' => 'Dropping Client report with category={category} and reason={} because quantity is zero or negative ({quantity})', 'context' => ['category' => 'profile', 'reason' => 'event_processor', 'quantity' => -10]], StubLogger::$logs[0]);
7576
}
7677

0 commit comments

Comments
 (0)