From 2d465a707fe400e01d3ef753735555076e94ac73 Mon Sep 17 00:00:00 2001 From: chandi Langecker Date: Thu, 6 Oct 2022 16:28:45 +0200 Subject: [PATCH] fix acl test Signed-off-by: chandi Langecker --- tests/integration/features/acl.feature | 2 +- tests/integration/features/bootstrap/BoardContext.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/features/acl.feature b/tests/integration/features/acl.feature index 2937a377f..51cb1be3b 100644 --- a/tests/integration/features/acl.feature +++ b/tests/integration/features/acl.feature @@ -71,7 +71,7 @@ Feature: acl Scenario: Reshare a board Given Logging in using web as "user0" - And creates a board named "Reshared board" with color "ff0000" + And creates a board named "Shared board" with color "ff0000" And shares the board with user "user1" | permissionEdit | 0 | | permissionShare | 1 | diff --git a/tests/integration/features/bootstrap/BoardContext.php b/tests/integration/features/bootstrap/BoardContext.php index acb796c2f..a423acab4 100644 --- a/tests/integration/features/bootstrap/BoardContext.php +++ b/tests/integration/features/bootstrap/BoardContext.php @@ -65,7 +65,7 @@ class BoardContext implements Context { if (!$this->board || $boardName != $this->board['title']) { $this->requestContext->sendJSONrequest('GET', '/index.php/apps/deck/boards', []); $boards = json_decode((string)$this->getResponse()->getBody(), true); - foreach ($boards as $board) { + foreach (array_reverse($boards) as $board) { if ($board['title'] == $boardName) { $id = $board['id']; break;