Only run underscores tests on PHP 5.6+

This commit is contained in:
Alain Schlesser 2019-11-25 10:38:33 +01:00
parent 1d8479686e
commit e282ba3fcc

View file

@ -333,6 +333,7 @@ Feature: WordPress code scaffolding
"""
And the return code should be 1

@require-php-5.6
Scenario: Scaffold starter code for a theme
Given a WP install
Given I run `wp theme path`
@ -347,6 +348,7 @@ Feature: WordPress code scaffolding
And the {THEME_DIR}/starter-theme/style.css file should exist
And the {THEME_DIR}/starter-theme/.editorconfig file should exist

@require-php-5.6
Scenario: Scaffold starter code for a theme with sass
Given a WP install
Given I run `wp theme path`
@ -360,6 +362,7 @@ Feature: WordPress code scaffolding
"""
And the {THEME_DIR}/starter-theme/sass directory should exist

@require-php-5.6
Scenario: Scaffold starter code for a WooCommerce theme
Given a WP install
Given I run `wp theme path`
@ -374,6 +377,7 @@ Feature: WordPress code scaffolding
And the {THEME_DIR}/starter-theme/woocommerce.css file should exist
And the {THEME_DIR}/starter-theme/inc/woocommerce.php file should exist

@require-php-5.6
Scenario: Scaffold starter code for a theme and activate it
Given a WP install
# Allow for warnings to be generated due to https://github.com/wp-cli/scaffold-command/issues/181
@ -490,6 +494,7 @@ Feature: WordPress code scaffolding
env: WP_VERSION=latest
"""

@require-php-5.6
Scenario: Scaffold starter code for a theme and network enable it
Given a WP multisite install
# Allow for warnings to be generated due to https://github.com/wp-cli/scaffold-command/issues/181
@ -499,6 +504,7 @@ Feature: WordPress code scaffolding
Success: Network enabled the 'Starter-theme' theme.
"""

@require-php-5.6
Scenario: Scaffold starter code for a theme, but can't unzip theme files
Given a WP install
And a misconfigured WP_CONTENT_DIR constant directory