diff options
author | Joas Schilling <coding@schilljs.com> | 2024-04-20 08:38:03 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-04-20 08:38:03 +0200 |
commit | b2a3960bf840b14f4a6f050a48692e505bd764cd (patch) | |
tree | df6d3e1d2a4952d398dceaee9c37ea9591636989 | |
parent | 2f13c1a838a4c42de7f1ae80a000eb4df2dc2a06 (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 31218882d..f4aa7d3c1 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); |