@@ -603,6 +603,13 @@ Feature: Test that WP-CLI Behat steps work as expected
603603
604604 @require-wp
605605 Scenario : Use the plugin and theme directories of a WP installation
606+ Given a WP installation
607+ Then the {PLUGIN_DIR}/akismet directory should exist
608+ And the {THEME_DIR} directory should exist
609+
610+ # Skipped on Windows because WordPress mixes path separators in these paths there.
611+ @require-wp @skip-windows
612+ Scenario : Plugin and theme directory variables match the WordPress constants
606613 Given a WP installation
607614 When I run `wp eval 'echo WP_PLUGIN_DIR;' `
608615 Then STDOUT should be:
@@ -615,21 +622,12 @@ Feature: Test that WP-CLI Behat steps work as expected
615622 """
616623 {THEME_DIR}
617624 """
618- And the {PLUGIN_DIR}/akismet directory should exist
619- And the {THEME_DIR} directory should exist
620625
621- @require-wp
622- Scenario : Test custom wp-content directory
626+ # Skipped on Windows because WordPress mixes path separators in these paths there.
627+ @require-wp @skip-windows
628+ Scenario : Plugin and theme directory variables follow a custom wp-content directory
623629 Given a WP installation
624630 And a custom wp-content directory
625- Then the my-content directory should exist
626- And the my-plugins directory should exist
627- And the my-mu-plugins directory should exist
628- And the wp-config.php file should contain:
629- """
630- WP_CONTENT_DIR
631- """
632-
633631 When I run `wp eval 'echo WP_PLUGIN_DIR;' `
634632 Then STDOUT should be:
635633 """
@@ -642,6 +640,20 @@ Feature: Test that WP-CLI Behat steps work as expected
642640 {THEME_DIR}
643641 """
644642
643+ @require-wp
644+ Scenario : Test custom wp-content directory
645+ Given a WP installation
646+ And a custom wp-content directory
647+ Then the my-content directory should exist
648+ And the my-plugins directory should exist
649+ And the my-mu-plugins directory should exist
650+ And the wp-config.php file should contain:
651+ """
652+ WP_CONTENT_DIR
653+ """
654+ And the {PLUGIN_DIR} directory should exist
655+ And the {THEME_DIR} directory should exist
656+
645657 @require-wp
646658 Scenario : Test WP multisite installation
647659 Given a WP multisite installation
0 commit comments