Skip to content

Commit 396c23e

Browse files
committed
Fix testPublishUpdate
1 parent ba9cd7c commit 396c23e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Bridge/Doctrine/EventListener/PublishMercureUpdatesListenerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ public function testLegacyPublishUpdate(): void
121121

122122
public function testPublishUpdate(): void
123123
{
124+
if (!method_exists(Update::class, 'isPrivate')) {
125+
$this->markTestSkipped();
126+
}
127+
124128
$toInsert = new Dummy();
125129
$toInsert->setId(1);
126130
$toInsertNotResource = new NotAResource('foo', 'bar');

0 commit comments

Comments
 (0)