fix acl test

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2022-10-06 16:28:45 +02:00
parent 43a1b1a2e5
commit 2d465a707f
2 changed files with 2 additions and 2 deletions

View File

@@ -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 |

View File

@@ -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;