summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-04-25 12:23:35 -0300
committerVitor Mattos <vitor@php.rio>2023-04-25 12:23:35 -0300
commitcb537d68eb218a557ad3599b39ad84c6b5c20d50 (patch)
tree6d3b46c02cf52a7d19ca62355ae53e969b2cb892 /tests
parentbf1ca6be148741b6840fae64bcc71feec076ecc0 (diff)
Add integration test to cover json output
Verified only if the output contain a common json simbols: list of objects: [{ Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/command/command-list.feature11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration/features/command/command-list.feature b/tests/integration/features/command/command-list.feature
new file mode 100644
index 000000000..0aac0cd31
--- /dev/null
+++ b/tests/integration/features/command/command-list.feature
@@ -0,0 +1,11 @@
+Feature: command/command-list
+
+ Scenario: List all available commands as plain text
+ 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 json
+ Given invoking occ with "talk:command:list --output=json"
+ Then the command was successful
+ And the command output contains the text "[{"