Skip to content

Commit

Permalink
Run test only on PHP 7.0+ (#323)
Browse files Browse the repository at this point in the history
Tests involving the WP release can now only run on PHP 7.0+ due to the new minimum requirement.
swissspidy authored Aug 9, 2023
1 parent 63e4c18 commit 594f0b4
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/install-wp-tests.feature
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ Feature: Scaffold install-wp-tests.sh tests
"""
And the return code should be 1

@less-than-php-8.0
@less-than-php-8.0 @require-php-7.0
Scenario: Install latest version of WordPress
Given a WP install
And a affirmative-response file:
2 changes: 1 addition & 1 deletion features/scaffold-theme-tests.feature
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ Feature: Scaffold theme unit tests
When I run `wp theme path`
Then save STDOUT as {THEME_DIR}

@require-php-5.6 @less-than-php-7.2
@require-php-7.0 @less-than-php-7.2
Scenario: Scaffold theme tests
When I run `wp scaffold theme-tests p2child`
Then STDOUT should not be empty

0 comments on commit 594f0b4

Please sign in to comment.