diff --git a/tests/Integration/Command/Share/RemoveTest.php b/tests/Integration/Command/Share/RemoveTest.php index 2cd32ac4f..d62d0de70 100644 --- a/tests/Integration/Command/Share/RemoveTest.php +++ b/tests/Integration/Command/Share/RemoveTest.php @@ -94,9 +94,9 @@ public function testValid(array $input, array $pollData): void { foreach ($pollData['initialShares'] ?? [] as $type => $shares) { foreach ($shares as $userId) { $initialShares[] = $this->createShareMock($pollData['pollId'], $type, $userId); + $expectedShares[] = $userId; if (in_array($userId, $pollData['expectedShares'][$type] ?? [])) { - $expectedShares[] = $userId; $expectedShareCount++; } }