summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-04-20 08:58:48 +0200
committerGitHub <noreply@github.com>2024-04-20 08:58:48 +0200
commit72aee6b126640dce445fd8a9bbd4e674a8bec007 (patch)
tree1301a1d2a3fc995307c8ee6127e311a4065169d4
parentb723998d40911b38f810c97cc3527d31ea7c51b4 (diff)
parent60b8298a2dee848c31f51e97daa90f5c52799ada (diff)
Merge pull request #12174 from nextcloud/backport/12163/main
fix(tests): Fix array keys in tests
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php2
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);