Skip to content

Commit a4ccb6a

Browse files
authored
Merge branch 'master' into add/mu-plugin-title
2 parents 78e1db0 + 5d23f5b commit a4ccb6a

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

features/theme-install.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Feature: Install WordPress themes
5757
Given a WP install
5858
And an empty cache
5959

60-
When I run `wp theme install stargazer`
60+
When I run `wp theme install moina`
6161
Then STDOUT should contain:
6262
"""
6363
Success: Installed 1 of 1 themes.
@@ -67,13 +67,13 @@ Feature: Install WordPress themes
6767
Using cached file
6868
"""
6969

70-
When I run `wp theme uninstall stargazer`
70+
When I run `wp theme uninstall moina`
7171
Then STDOUT should contain:
7272
"""
7373
Success: Deleted 1 of 1 themes.
7474
"""
7575

76-
When I run `wp theme install buntu`
76+
When I run `wp theme install moina-blog`
7777
Then STDOUT should contain:
7878
"""
7979
Success: Installed 1 of 1 themes.

features/theme.feature

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -273,78 +273,78 @@ Feature: Manage WordPress themes
273273

274274
Scenario: Enabling and disabling a theme
275275
Given a WP multisite install
276-
And I run `wp theme install stargazer`
277-
And I run `wp theme install buntu`
276+
And I run `wp theme install moina`
277+
And I run `wp theme install moina-blog`
278278

279279
When I try `wp option get allowedthemes`
280280
Then the return code should be 1
281281
# STDERR may or may not be empty, depending on WP-CLI version.
282282
And STDOUT should be empty
283283

284-
When I run `wp theme enable buntu`
284+
When I run `wp theme enable moina-blog`
285285
Then STDOUT should contain:
286286
"""
287-
Success: Enabled the 'Buntu' theme.
287+
Success: Enabled the 'Moina Blog' theme.
288288
"""
289289

290290
When I run `wp option get allowedthemes`
291291
Then STDOUT should contain:
292292
"""
293-
'buntu' => true
293+
'moina-blog' => true
294294
"""
295295

296-
When I run `wp theme disable buntu`
296+
When I run `wp theme disable moina-blog`
297297
Then STDOUT should contain:
298298
"""
299-
Success: Disabled the 'Buntu' theme.
299+
Success: Disabled the 'Moina Blog' theme.
300300
"""
301301

302302
When I run `wp option get allowedthemes`
303303
Then STDOUT should not contain:
304304
"""
305-
'buntu' => true
305+
'moina-blog' => true
306306
"""
307307

308-
When I run `wp theme enable buntu --activate`
308+
When I run `wp theme enable moina-blog --activate`
309309
Then STDOUT should contain:
310310
"""
311-
Success: Enabled the 'Buntu' theme.
312-
Success: Switched to 'Buntu' theme.
311+
Success: Enabled the 'Moina Blog' theme.
312+
Success: Switched to 'Moina Blog' theme.
313313
"""
314314

315315
# Hybrid_Registry throws warning for PHP 8+.
316316
When I try `wp network-meta get 1 allowedthemes`
317317
Then STDOUT should not contain:
318318
"""
319-
'buntu' => true
319+
'moina-blog' => true
320320
"""
321321

322322
# Hybrid_Registry throws warning for PHP 8+.
323-
When I try `wp theme enable buntu --network`
323+
When I try `wp theme enable moina-blog --network`
324324
Then STDOUT should contain:
325325
"""
326-
Success: Network enabled the 'Buntu' theme.
326+
Success: Network enabled the 'Moina Blog' theme.
327327
"""
328328

329329
# Hybrid_Registry throws warning for PHP 8+.
330330
When I try `wp network-meta get 1 allowedthemes`
331331
Then STDOUT should contain:
332332
"""
333-
'buntu' => true
333+
'moina-blog' => true
334334
"""
335335

336336
# Hybrid_Registry throws warning for PHP 8+.
337-
When I try `wp theme disable buntu --network`
337+
When I try `wp theme disable moina-blog --network`
338338
Then STDOUT should contain:
339339
"""
340-
Success: Network disabled the 'Buntu' theme.
340+
Success: Network disabled the 'Moina Blog' theme.
341341
"""
342342

343343
# Hybrid_Registry throws warning for PHP 8+.
344344
When I try `wp network-meta get 1 allowedthemes`
345345
Then STDOUT should not contain:
346346
"""
347-
'buntu' => true
347+
'moina-blog' => true
348348
"""
349349

350350
Scenario: Enabling and disabling a theme without multisite
@@ -382,28 +382,28 @@ Feature: Manage WordPress themes
382382

383383
Scenario: Install and attempt to activate a child theme without its parent
384384
Given a WP install
385-
And I run `wp theme install buntu`
386-
And I run `rm -rf wp-content/themes/stargazer`
385+
And I run `wp theme install moina-blog`
386+
And I run `rm -rf wp-content/themes/moina`
387387

388-
When I try `wp theme activate buntu`
388+
When I try `wp theme activate moina-blog`
389389
Then STDERR should contain:
390390
"""
391-
Error: The parent theme is missing. Please install the "stargazer" parent theme.
391+
Error: The parent theme is missing. Please install the "moina" parent theme.
392392
"""
393393
And STDOUT should be empty
394394
And the return code should be 1
395395

396396
Scenario: List an active theme with its parent
397397
Given a WP install
398-
And I run `wp theme install stargazer`
399-
And I run `wp theme install --activate buntu`
398+
And I run `wp theme install moina`
399+
And I run `wp theme install --activate moina-blog`
400400

401401
# Hybrid_Registry throws warning for PHP 8+.
402402
When I try `wp theme list --fields=name,status`
403403
Then STDOUT should be a table containing rows:
404404
| name | status |
405-
| buntu | active |
406-
| stargazer | parent |
405+
| moina-blog | active |
406+
| moina | parent |
407407

408408
Scenario: When updating a theme --format should be the same when using --dry-run
409409
Given a WP install
@@ -472,24 +472,24 @@ Feature: Manage WordPress themes
472472
Scenario: Automatically install parent theme for a child theme
473473
Given a WP install
474474

475-
When I try `wp theme status stargazer`
475+
When I try `wp theme status moina`
476476
Then STDERR should contain:
477477
"""
478-
Error: The 'stargazer' theme could not be found.
478+
Error: The 'moina' theme could not be found.
479479
"""
480480
And STDOUT should be empty
481481
And the return code should be 1
482482

483-
When I run `wp theme install buntu`
483+
When I run `wp theme install moina-blog`
484484
Then STDOUT should contain:
485485
"""
486486
This theme requires a parent theme. Checking if it is installed
487487
"""
488488

489-
When I run `wp theme status stargazer`
489+
When I run `wp theme status moina`
490490
Then STDOUT should contain:
491491
"""
492-
Theme stargazer details:
492+
Theme moina details:
493493
"""
494494
And STDERR should be empty
495495

0 commit comments

Comments
 (0)