File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -148,3 +148,52 @@ Feature: List WordPress options
148
148
option_value:
149
149
value: 1
150
150
"""
151
+
152
+ Scenario : Using the `--autoload=on` flag
153
+ Given a WP install
154
+ And I run `wp option add sample_autoload_one 'sample_value_one' --autoload=yes`
155
+ And I run `wp option add sample_autoload_two 'sample_value_two' --autoload=no`
156
+ And I run `wp option add sample_autoload_three 'sample_value_three' --autoload=on`
157
+ And I run `wp option add sample_autoload_four 'sample_value_four' --autoload=off`
158
+
159
+ When I run `wp option list --autoload=on`
160
+ Then STDOUT should not contain:
161
+ """
162
+ sample_value_two
163
+ """
164
+ And STDOUT should not contain:
165
+ """
166
+ sample_value_four
167
+ """
168
+ And STDOUT should contain:
169
+ """
170
+ sample_value_one
171
+ """
172
+ And STDOUT should contain:
173
+ """
174
+ sample_value_three
175
+ """
176
+ Scenario : Using the `--autoload=off` flag
177
+ Given a WP install
178
+ And I run `wp option add sample_autoload_one 'sample_value_one' --autoload=yes`
179
+ And I run `wp option add sample_autoload_two 'sample_value_two' --autoload=no`
180
+ And I run `wp option add sample_autoload_three 'sample_value_three' --autoload=on`
181
+ And I run `wp option add sample_autoload_four 'sample_value_four' --autoload=off`
182
+
183
+ When I run `wp option list --autoload=off`
184
+ Then STDOUT should not contain:
185
+ """
186
+ sample_value_one
187
+ """
188
+ And STDOUT should not contain:
189
+ """
190
+ sample_value_three
191
+ """
192
+ And STDOUT should contain:
193
+ """
194
+ sample_value_two
195
+ """
196
+ And STDOUT should contain:
197
+ """
198
+ sample_value_four
199
+ """
You can’t perform that action at this time.
0 commit comments