Skip to content

Commit f799427

Browse files
authored
Merge pull request #105 from wojsmol/fix-theme-tests
fix theme test
2 parents 0da98cc + 63a2575 commit f799427

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

features/theme.feature

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -231,73 +231,73 @@ Feature: Manage WordPress themes
231231
232232
Scenario: Enabling and disabling a theme
233233
Given a WP multisite install
234-
And I run `wp theme install jolene`
235-
And I run `wp theme install biker`
234+
And I run `wp theme install stargazer`
235+
And I run `wp theme install buntu`
236236
237237
When I try `wp option get allowedthemes`
238238
Then the return code should be 1
239239
# STDERR may or may not be empty, depending on WP-CLI version.
240240
And STDOUT should be empty
241241
242-
When I run `wp theme enable biker`
242+
When I run `wp theme enable buntu`
243243
Then STDOUT should contain:
244244
"""
245-
Success: Enabled the 'Biker' theme.
245+
Success: Enabled the 'Buntu' theme.
246246
"""
247247
248248
When I run `wp option get allowedthemes`
249249
Then STDOUT should contain:
250250
"""
251-
'biker' => true
251+
'buntu' => true
252252
"""
253253
254-
When I run `wp theme disable biker`
254+
When I run `wp theme disable buntu`
255255
Then STDOUT should contain:
256256
"""
257-
Success: Disabled the 'Biker' theme.
257+
Success: Disabled the 'Buntu' theme.
258258
"""
259259
260260
When I run `wp option get allowedthemes`
261261
Then STDOUT should not contain:
262262
"""
263-
'biker' => true
263+
'buntu' => true
264264
"""
265265
266-
When I run `wp theme enable biker --activate`
266+
When I run `wp theme enable buntu --activate`
267267
Then STDOUT should contain:
268268
"""
269-
Success: Enabled the 'Biker' theme.
270-
Success: Switched to 'Biker' theme.
269+
Success: Enabled the 'Buntu' theme.
270+
Success: Switched to 'Buntu' theme.
271271
"""
272272
273273
When I run `wp network-meta get 1 allowedthemes`
274274
Then STDOUT should not contain:
275275
"""
276-
'biker' => true
276+
'buntu' => true
277277
"""
278278
279-
When I run `wp theme enable biker --network`
279+
When I run `wp theme enable buntu --network`
280280
Then STDOUT should contain:
281281
"""
282-
Success: Network enabled the 'Biker' theme.
282+
Success: Network enabled the 'Buntu' theme.
283283
"""
284284
285285
When I run `wp network-meta get 1 allowedthemes`
286286
Then STDOUT should contain:
287287
"""
288-
'biker' => true
288+
'buntu' => true
289289
"""
290290
291-
When I run `wp theme disable biker --network`
291+
When I run `wp theme disable buntu --network`
292292
Then STDOUT should contain:
293293
"""
294-
Success: Network disabled the 'Biker' theme.
294+
Success: Network disabled the 'Buntu' theme.
295295
"""
296296
297297
When I run `wp network-meta get 1 allowedthemes`
298298
Then STDOUT should not contain:
299299
"""
300-
'biker' => true
300+
'buntu' => true
301301
"""
302302
303303
Scenario: Enabling and disabling a theme without multisite
@@ -335,27 +335,27 @@ Feature: Manage WordPress themes
335335
336336
Scenario: Install and attempt to activate a child theme without its parent
337337
Given a WP install
338-
And I run `wp theme install biker`
339-
And I run `rm -rf wp-content/themes/jolene`
338+
And I run `wp theme install buntu`
339+
And I run `rm -rf wp-content/themes/stargazer`
340340
341-
When I try `wp theme activate biker`
341+
When I try `wp theme activate buntu`
342342
Then STDERR should contain:
343343
"""
344-
Error: The parent theme is missing. Please install the "jolene" parent theme.
344+
Error: The parent theme is missing. Please install the "stargazer" parent theme.
345345
"""
346346
And STDOUT should be empty
347347
And the return code should be 1
348348
349349
Scenario: List an active theme with its parent
350350
Given a WP install
351-
And I run `wp theme install jolene`
352-
And I run `wp theme install --activate biker`
351+
And I run `wp theme install stargazer`
352+
And I run `wp theme install --activate buntu`
353353
354354
When I run `wp theme list --fields=name,status`
355355
Then STDOUT should be a table containing rows:
356356
| name | status |
357-
| biker | active |
358-
| jolene | parent |
357+
| buntu | active |
358+
| stargazer | parent |
359359
360360
Scenario: When updating a theme --format should be the same when using --dry-run
361361
Given a WP install

0 commit comments

Comments
 (0)