Skip to content

Commit 65dcbf8

Browse files
committed
Point to polyfils for running tests
1 parent 04119db commit 65dcbf8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

features/install-wp-tests.feature

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ Feature: Scaffold install-wp-tests.sh tests
101101
wp_cli_test_scaffold
102102
"""
103103

104-
When I run `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib ./phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
104+
When I run `composer init --name=test/package --require="yoast/phpunit-polyfills:^1" --no-interaction --working-dir=polyfills`
105+
Then the return code should be 0
106+
107+
When I run `composer install --no-interaction --working-dir=polyfills`
108+
Then the return code should be 0
109+
110+
When I run `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/polyfills/vendor/yoast/phunit-polyfills ./phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
105111
Then the return code should be 0
106112

107113
When I try `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_CORE_DIR={RUN_DIR}/wordpress /usr/bin/env bash {PLUGIN_DIR}/hello-world/bin/install-wp-tests.sh wp_cli_test_scaffold {DB_USER} {DB_PASSWORD} {DB_HOST} latest < affirmative-response`

0 commit comments

Comments
 (0)