Run test only on PHP 7.0+ (#323)

Tests involving the WP release can now only run on PHP 7.0+ due to the new minimum requirement.
This commit is contained in:
Pascal Birchler 2023-08-09 16:59:16 +02:00 committed by GitHub
parent 63e4c1833a
commit 594f0b47a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ Feature: Scaffold install-wp-tests.sh tests
""" """
And the return code should be 1 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 Scenario: Install latest version of WordPress
Given a WP install Given a WP install
And a affirmative-response file: And a affirmative-response file:

View file

@ -8,7 +8,7 @@ Feature: Scaffold theme unit tests
When I run `wp theme path` When I run `wp theme path`
Then save STDOUT as {THEME_DIR} 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 Scenario: Scaffold theme tests
When I run `wp scaffold theme-tests p2child` When I run `wp scaffold theme-tests p2child`
Then STDOUT should not be empty Then STDOUT should not be empty