Skip to content

Commit f2e6dd0

Browse files
committed
IBX-8418: Fix unit test
1 parent 6164cc5 commit f2e6dd0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/lib/Persistence/Legacy/Content/TreeHandlerTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,7 @@ public function testDeleteChildrenDraftsRecursive(): void
447447
->expects(self::exactly(3))
448448
->method('deleteContent')
449449
->willReturnCallback(static function (int $contentId): void {
450-
$argumentValue = match ($contentId) {
451-
99 => 99,
452-
101 => 101,
453-
102 => 102,
454-
default => null
455-
};
456-
457-
self::assertSame($argumentValue, $contentId);
450+
self::assertContains($contentId, [99, 101, 102]);
458451
});
459452

460453
$treeHandler = $this->getTreeHandler();

0 commit comments

Comments
 (0)