Skip to content

Commit f9041cb

Browse files
Add @require-mysql for tests with explicit MySQL dependency
1 parent bdac4c3 commit f9041cb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

features/install-wp-tests.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Feature: Scaffold install-wp-tests.sh tests
264264
Leaving the existing database (wp_cli_test_scaffold) in place
265265
"""
266266
267-
@require-php-8.0 @require-wp-5.8
267+
@require-php-8.0 @require-wp-5.8 @require-mysql
268268
Scenario: Install latest version of WordPress on PHP 8.0+ and WordPress above 5.8
269269
Given a WP install
270270
And a affirmative-response file:
@@ -383,7 +383,7 @@ Feature: Scaffold install-wp-tests.sh tests
383383
Leaving the existing database (wp_cli_test_scaffold) in place
384384
"""
385385
386-
@require-php-7.0
386+
@require-php-7.0 @require-mysql
387387
Scenario: Install WordPress from trunk
388388
Given a WP install
389389
And a get-phpunit-phar-url.php file:
@@ -485,6 +485,7 @@ Feature: Scaffold install-wp-tests.sh tests
485485
When I run `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/wordpress-tests-lib/vendor/yoast/phpunit-polyfills ./phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
486486
Then the return code should be 0
487487
488+
@require-mysql
488489
Scenario: Install WordPress 3.7 and phpunit will not run
489490
Given a WP install
490491
And I run `wp plugin path`

features/scaffold.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ Feature: WordPress code scaffolding
498498
Success: Network enabled the 'Starter-theme' theme.
499499
"""
500500
501-
@require-php-5.6 @require-wp-4.6
501+
@require-php-5.6 @require-wp-4.6 @require-mysql
502502
Scenario: Scaffold starter code for a theme, but can't unzip theme files
503503
Given a WP install
504504
And a misconfigured WP_CONTENT_DIR constant directory

0 commit comments

Comments
 (0)