diff options
author | Vitor Mattos <vitor@php.rio> | 2021-12-01 14:18:32 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2021-12-02 18:27:26 +0300 |
commit | c9cf44e9309f6797e0b18bed48061f74328d01ab (patch) | |
tree | 350c6545723164278eda319651331c992728c4d3 /tests | |
parent | 1df244fde66aef14d1218596dcba569c4c7960b0 (diff) |
Add command to remove users from all rooms
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/command/user-remove.feature | 15 | ||||
-rw-r--r-- | tests/psalm-baseline.xml | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/integration/features/command/user-remove.feature b/tests/integration/features/command/user-remove.feature new file mode 100644 index 000000000..6288262cf --- /dev/null +++ b/tests/integration/features/command/user-remove.feature @@ -0,0 +1,15 @@ +Feature: User remove + + Background: + Given user "participant1" exists + Given user "participant2" exists + + Scenario: Remove a user from all their rooms + Given user "participant1" creates room "room" (v4) + | roomType | 1 | + | invite | participant2 | + And invoking occ with "talk:user:remove --user participant2" + And the command output contains the text "Users successfully removed from all rooms" + Then the command was successful + And user "participant2" is participant of the following rooms (v4) + And user "participant1" is participant of room "room" (v4) diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 6fd3e66fd..17b984818 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -155,6 +155,11 @@ <code>Base</code> </UndefinedClass> </file> + <file src="lib/Command/User/Remove.php"> + <UndefinedClass occurrences="1"> + <code>Base</code> + </UndefinedClass> + </file> <file src="lib/Config.php"> <NullArgument occurrences="1"> <code>null</code> |