Skip to content

Commit acc8e2d

Browse files
committed
Guard against missing method used in tests
1 parent 4151e81 commit acc8e2d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Sentry/Features/ConsoleIntegrationTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77

88
class ConsoleIntegrationTest extends TestCase
99
{
10+
public function setUp(): void
11+
{
12+
if (!method_exists(Event::class, 'flushMacros')) {
13+
$this->markTestSkipped('Macroable::flushMacros() is not available in this Laravel version.');
14+
}
15+
16+
parent::setUp(); // TODO: Change the autogenerated stub
17+
}
18+
1019
public function testArtisanCommandIsRegistered(): void
1120
{
1221
Event::flushMacros();

0 commit comments

Comments
 (0)