mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-10-03 16:51:08 +08:00
Only run underscores tests on PHP 5.6+
This commit is contained in:
parent
1d8479686e
commit
e282ba3fcc
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue