@@ -71,7 +71,7 @@ Feature: acl
|
|||||||
|
|
||||||
Scenario: Reshare a board
|
Scenario: Reshare a board
|
||||||
Given Logging in using web as "user0"
|
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"
|
And shares the board with user "user1"
|
||||||
| permissionEdit | 0 |
|
| permissionEdit | 0 |
|
||||||
| permissionShare | 1 |
|
| permissionShare | 1 |
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class BoardContext implements Context {
|
|||||||
if (!$this->board || $boardName != $this->board['title']) {
|
if (!$this->board || $boardName != $this->board['title']) {
|
||||||
$this->requestContext->sendJSONrequest('GET', '/index.php/apps/deck/boards', []);
|
$this->requestContext->sendJSONrequest('GET', '/index.php/apps/deck/boards', []);
|
||||||
$boards = json_decode((string)$this->getResponse()->getBody(), true);
|
$boards = json_decode((string)$this->getResponse()->getBody(), true);
|
||||||
foreach ($boards as $board) {
|
foreach (array_reverse($boards) as $board) {
|
||||||
if ($board['title'] == $boardName) {
|
if ($board['title'] == $boardName) {
|
||||||
$id = $board['id'];
|
$id = $board['id'];
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user