Skip to content

Commit 8aa906c

Browse files
authored
Merge pull request #326 from wp-cli/skip-mysql-tests
2 parents bdac4c3 + faa8543 commit 8aa906c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

features/install-wp-tests.feature

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature: Scaffold install-wp-tests.sh tests
1414
"""
1515
And the return code should be 1
1616

17-
@less-than-php-8.0 @require-php-7.0
17+
@less-than-php-8.0 @require-php-7.0 @require-mysql
1818
Scenario: Install latest version of WordPress
1919
Given a WP install
2020
And a affirmative-response file:
@@ -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-theme-tests.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: Scaffold theme unit tests
88
When I run `wp theme path`
99
Then save STDOUT as {THEME_DIR}
1010

11-
@require-php-7.0 @less-than-php-7.2
11+
@require-php-7.0 @less-than-php-7.2 @require-mysql
1212
Scenario: Scaffold theme tests
1313
When I run `wp scaffold theme-tests p2child`
1414
Then STDOUT should not be empty

features/scaffold.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Feature: WordPress code scaffolding
379379
And the {THEME_DIR}/starter-theme/woocommerce.css file should exist
380380
And the {THEME_DIR}/starter-theme/inc/woocommerce.php file should exist
381381
382-
@require-php-5.6 @require-wp-4.6
382+
@require-php-5.6 @require-wp-4.6 @require-mysql
383383
Scenario: Scaffold starter code for a theme and activate it
384384
Given a WP install
385385
# Allow for warnings to be generated due to https://github.com/wp-cli/scaffold-command/issues/181
@@ -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)