Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,20 @@ public function userDeletesRoom($user, $identifier, $statusCode, $apiVersion = '
$this->assertStatusCode($this->response, $statusCode);
}

/**
* @Then /^user "([^"]*)" gets room "([^"]*)" with (\d+)(?: \((v(1|2|3))\))?$/
*
* @param string $user
* @param string $identifier
* @param string $statusCode
* @param string $apiVersion
*/
public function userGetsRoom($user, $identifier, $statusCode, $apiVersion = 'v1') {
$this->setCurrentUser($user);
$this->sendRequest('GET', '/apps/spreed/api/' . $apiVersion . '/room/' . self::$identifierToToken[$identifier]);
$this->assertStatusCode($this->response, $statusCode);
}

/**
* @Then /^user "([^"]*)" renames room "([^"]*)" to "([^"]*)" with (\d+)(?: \((v(1|2|3))\))?$/
*
Expand Down
7 changes: 7 additions & 0 deletions tests/integration/features/conversation/remove-self.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Feature: public
Then user "participant1" is participant of room "room"
And user "participant2" is not participant of room "room"

Scenario: Last moderator removes the room from their room list
Given user "participant1" creates room "room"
| roomType | 3 |
| roomName | room |
When user "participant1" removes themselves from room "room" with 200
Then user "participant2" gets room "room" with 404 (v3)

Scenario: User removes the room from their room list
Given user "participant1" creates room "room"
| roomType | 3 |
Expand Down