@@ -470,6 +470,13 @@ Feature: Test that WP-CLI Behat steps work as expected
470470
471471 @require-wp
472472 Scenario : Use the plugin and theme directories of a WP installation
473+ Given a WP installation
474+ Then the {PLUGIN_DIR}/akismet directory should exist
475+ And the {THEME_DIR} directory should exist
476+
477+ # Skipped on Windows because WordPress mixes path separators in these paths there.
478+ @require-wp @skip-windows
479+ Scenario : Plugin and theme directory variables match the WordPress constants
473480 Given a WP installation
474481 When I run `wp eval 'echo WP_PLUGIN_DIR;' `
475482 Then STDOUT should be:
@@ -482,21 +489,12 @@ Feature: Test that WP-CLI Behat steps work as expected
482489 """
483490 {THEME_DIR}
484491 """
485- And the {PLUGIN_DIR}/akismet directory should exist
486- And the {THEME_DIR} directory should exist
487492
488- @require-wp
489- Scenario : Test custom wp-content directory
493+ # Skipped on Windows because WordPress mixes path separators in these paths there.
494+ @require-wp @skip-windows
495+ Scenario : Plugin and theme directory variables follow a custom wp-content directory
490496 Given a WP installation
491497 And a custom wp-content directory
492- Then the my-content directory should exist
493- And the my-plugins directory should exist
494- And the my-mu-plugins directory should exist
495- And the wp-config.php file should contain:
496- """
497- WP_CONTENT_DIR
498- """
499-
500498 When I run `wp eval 'echo WP_PLUGIN_DIR;' `
501499 Then STDOUT should be:
502500 """
@@ -509,6 +507,20 @@ Feature: Test that WP-CLI Behat steps work as expected
509507 {THEME_DIR}
510508 """
511509
510+ @require-wp
511+ Scenario : Test custom wp-content directory
512+ Given a WP installation
513+ And a custom wp-content directory
514+ Then the my-content directory should exist
515+ And the my-plugins directory should exist
516+ And the my-mu-plugins directory should exist
517+ And the wp-config.php file should contain:
518+ """
519+ WP_CONTENT_DIR
520+ """
521+ And the {PLUGIN_DIR} directory should exist
522+ And the {THEME_DIR} directory should exist
523+
512524 @require-wp
513525 Scenario : Test WP multisite installation
514526 Given a WP multisite installation
0 commit comments