Skip to content

Commit

Permalink
Merge pull request #12174 from nextcloud/backport/12163/main
Browse files Browse the repository at this point in the history
fix(tests): Fix array keys in tests
  • Loading branch information
nickvergessen authored Apr 20, 2024
2 parents b723998 + 60b8298 commit 72aee6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ public function userGetsDashboardWidgetItems($user, $widgetId, $apiVersion = 'v1
$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);
Expand Down

0 comments on commit 72aee6b

Please sign in to comment.