summaryrefslogtreecommitdiffstats
path: root/tests/integration
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-04-25 12:32:13 -0300
committerVitor Mattos <vitor@php.rio>2023-04-25 12:32:13 -0300
commita4544b5acbb3533dcf9a8b8288369d1f7486ee7e (patch)
tree9f33fecb26cfa0955332794e8b592374d95ec046 /tests/integration
parentcb537d68eb218a557ad3599b39ad84c6b5c20d50 (diff)
Add more test scenario
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/features/command/command-list.feature12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/integration/features/command/command-list.feature b/tests/integration/features/command/command-list.feature
index 0aac0cd31..1ce18e2ed 100644
--- a/tests/integration/features/command/command-list.feature
+++ b/tests/integration/features/command/command-list.feature
@@ -1,10 +1,20 @@
Feature: command/command-list
- Scenario: List all available commands as plain text
+ Scenario: Get the output options
+ Given invoking occ with "talk:command:list --help"
+ Then the command was successful
+ And the command output contains the text "Output format"
+
+ Scenario: List all available commands as plain text (default)
Given invoking occ with "talk:command:list"
Then the command was successful
And the command output contains the text "Response values: 0 - No one"
+ Scenario: List all available commands as plain text
+ Given invoking occ with "talk:command:list --output=plain"
+ Then the command was successful
+ And the command output contains the text "Response values: 0 - No one"
+
Scenario: List all available commands as json
Given invoking occ with "talk:command:list --output=json"
Then the command was successful