diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-18 15:53:47 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-27 12:20:35 +0100 |
commit | 304112b0ad9963648313057134fce45dc98b0e33 (patch) | |
tree | b2d6f0e2b1fe295cbc96b91ad3a19b0b88c7e621 | |
parent | 07422477f57e580e785fa56038cbb46be5cf60ab (diff) | |
download | nextcloud-server-backport/51458/stable31.tar.gz nextcloud-server-backport/51458/stable31.zip |
fix(tests): Sort activities by id to get the last onebackport/51458/stable31
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | build/integration/features/bootstrap/Activity.php | 2 | ||||
-rw-r--r-- | build/integration/sharing_features/sharing-activity.feature | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/Activity.php b/build/integration/features/bootstrap/Activity.php index 466b2dde14e..4172776304d 100644 --- a/build/integration/features/bootstrap/Activity.php +++ b/build/integration/features/bootstrap/Activity.php @@ -22,6 +22,8 @@ trait Activity { $this->theHTTPStatusCodeShouldBe('200'); $data = json_decode($this->response->getBody()->getContents(), true); $activities = $data['ocs']['data']; + /* Sort by id */ + uasort($activities, fn ($a, $b) => $a['activity_id'] <=> $b['activity_id']); $lastActivity = array_pop($activities); foreach ($activity->getRowsHash() as $key => $value) { Assert::assertEquals($value, $lastActivity[$key]); diff --git a/build/integration/sharing_features/sharing-activity.feature b/build/integration/sharing_features/sharing-activity.feature index 5757b210134..016b376488b 100644 --- a/build/integration/sharing_features/sharing-activity.feature +++ b/build/integration/sharing_features/sharing-activity.feature @@ -10,7 +10,7 @@ Feature: sharing And Logging in using web as "user0" And Sending a "POST" to "/apps/activity/settings" with requesttoken | public_links_notification | 1 | - | public_links_upload_email | 1 | + | public_links_upload_notification | 1 | | notify_setting_batchtime | 0 | | activity_digest | 0 | |