File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,10 +134,7 @@ Feature: Manage widgets in WordPress sidebar
134134 And the return code should be 0
135135
136136 # Read value to update from STDIN (edge case: "0")
137- When I run `wp widget patch update archives-1 title` with:
138- """
139- 0
140- """
137+ When I run `echo '0' | wp widget patch update archives-1 title`
141138 Then STDOUT should be:
142139 """
143140 Success: Widget updated.
@@ -146,10 +143,7 @@ Feature: Manage widgets in WordPress sidebar
146143 And the return code should be 0
147144
148145 # Read JSON value from STDIN with --format=json (edge case: null)
149- When I run `wp widget patch update archives-1 title --format=json` with:
150- """
151- null
152- """
146+ When I run `echo 'null' | wp widget patch update archives-1 title --format=json`
153147 Then STDOUT should be:
154148 """
155149 Success: Widget updated.
You can’t perform that action at this time.
0 commit comments