Skip to content

Commit

Permalink
IBX-8418: Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Jul 7, 2024
1 parent 7473d19 commit f80cb5c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/lib/Persistence/Legacy/Content/TreeHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,7 @@ public function testDeleteChildrenDraftsRecursive(): void
->expects(self::exactly(3))
->method('deleteContent')
->willReturnCallback(static function (int $contentId): void {
$argumentValue = match ($contentId) {
99 => 99,
101 => 101,
102 => 102,
default => null
};

self::assertSame($argumentValue, $contentId);
self::assertContains($contentId, [99, 101, 102]);
});

$treeHandler = $this->getTreeHandler();
Expand Down

0 comments on commit f80cb5c

Please sign in to comment.