From f80cb5c1c0d6edd8f453f7704e513abb983c683c Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Sun, 7 Jul 2024 14:38:22 +0200 Subject: [PATCH] IBX-8418: Fix unit test --- tests/lib/Persistence/Legacy/Content/TreeHandlerTest.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/lib/Persistence/Legacy/Content/TreeHandlerTest.php b/tests/lib/Persistence/Legacy/Content/TreeHandlerTest.php index 3df8c93fb8..9daf814d36 100644 --- a/tests/lib/Persistence/Legacy/Content/TreeHandlerTest.php +++ b/tests/lib/Persistence/Legacy/Content/TreeHandlerTest.php @@ -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();