diff options
author | Joas Schilling <coding@schilljs.com> | 2024-04-20 08:38:03 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-04-20 06:39:30 +0000 |
commit | 60b8298a2dee848c31f51e97daa90f5c52799ada (patch) | |
tree | aff5994ec83b4298fb7ae1590b19adb37eb3e7b9 | |
parent | d1239c488a1e96e81d338fe9801ac31158e54fa1 (diff) |
fix(tests): Fix array keys in tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | tests/integration/features/bootstrap/FeatureContext.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 6888e9ba4..ad940d43e 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -2357,7 +2357,7 @@ class FeatureContext implements Context, SnippetAcceptingContext { $actualItems = $data[$widgetId]['items']; } - $actualItems = array_filter($actualItems, static fn ($item) => $item['title'] !== 'Note to self' && $item['title'] !== 'Talk updates ✅'); + $actualItems = array_values(array_filter($actualItems, static fn ($item) => $item['title'] !== 'Note to self' && $item['title'] !== 'Talk updates ✅')); if (empty($expectedItems)) { Assert::assertEmpty($actualItems); |