Skip to content

Commit da70d0b

Browse files
committed
Avoid using chmod
1 parent 5f2a24d commit da70d0b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

features/install-wp-tests.feature

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Feature: Scaffold install-wp-tests.sh tests
4646
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
4747
And save STDOUT as {PHPUNIT_PHAR_URL}
4848
And I run `curl -sS -L -o phpunit {PHPUNIT_PHAR_URL}`
49-
And I run `chmod +x phpunit`
5049
And I run `wp plugin path`
5150
And save STDOUT as {PLUGIN_DIR}
5251
And I run `wp scaffold plugin hello-world`
@@ -108,7 +107,7 @@ Feature: Scaffold install-wp-tests.sh tests
108107
When I run `composer install --no-interaction --working-dir=polyfills --quiet`
109108
Then the return code should be 0
110109

111-
When I run `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/polyfills/vendor/yoast/phpunit-polyfills ./phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
110+
When I run `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/polyfills/vendor/yoast/phpunit-polyfills php phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
112111
Then the return code should be 0
113112

114113
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`
@@ -165,7 +164,6 @@ Feature: Scaffold install-wp-tests.sh tests
165164
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
166165
And save STDOUT as {PHPUNIT_PHAR_URL}
167166
And I run `curl -sS -L -o phpunit {PHPUNIT_PHAR_URL}`
168-
And I run `chmod +x phpunit`
169167
And I run `wp plugin path`
170168
And save STDOUT as {PLUGIN_DIR}
171169
And I run `wp scaffold plugin hello-world`
@@ -227,7 +225,7 @@ Feature: Scaffold install-wp-tests.sh tests
227225
When I run `composer install --no-interaction --working-dir=polyfills --quiet`
228226
Then the return code should be 0
229227
230-
When I try `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/polyfills/vendor/yoast/phpunit-polyfills ./phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
228+
When I try `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/polyfills/vendor/yoast/phpunit-polyfills php phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
231229
Then the return code should be 1
232230
And STDOUT should contain:
233231
"""
@@ -296,7 +294,6 @@ Feature: Scaffold install-wp-tests.sh tests
296294
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
297295
And save STDOUT as {PHPUNIT_PHAR_URL}
298296
And I run `curl -sS -L -o phpunit {PHPUNIT_PHAR_URL}`
299-
And I run `chmod +x phpunit`
300297
And I run `wp plugin path`
301298
And save STDOUT as {PLUGIN_DIR}
302299
And I run `wp scaffold plugin hello-world`
@@ -358,7 +355,7 @@ Feature: Scaffold install-wp-tests.sh tests
358355
When I run `composer install --no-interaction --working-dir=polyfills --quiet`
359356
Then the return code should be 0
360357
361-
When I run `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/polyfills/vendor/yoast/phpunit-polyfills ./phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
358+
When I run `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_TESTS_PHPUNIT_POLYFILLS_PATH={RUN_DIR}/polyfills/vendor/yoast/phpunit-polyfills php phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
362359
Then the return code should be 0
363360
364361
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`
@@ -407,7 +404,6 @@ Feature: Scaffold install-wp-tests.sh tests
407404
And I run `wp eval-file get-phpunit-phar-url.php --skip-wordpress`
408405
And save STDOUT as {PHPUNIT_PHAR_URL}
409406
And I run `curl -sS -L -o phpunit {PHPUNIT_PHAR_URL}`
410-
And I run `chmod +x phpunit`
411407
And I run `wp plugin path`
412408
And save STDOUT as {PLUGIN_DIR}
413409
And I run `wp scaffold plugin hello-world`
@@ -482,7 +478,7 @@ Feature: Scaffold install-wp-tests.sh tests
482478
When I run `composer install --no-interaction --quiet --working-dir={RUN_DIR}/wordpress-tests-lib`
483479
Then the return code should be 0
484480
485-
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`
481+
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 php phpunit -c {PLUGIN_DIR}/hello-world/phpunit.xml.dist`
486482
Then the return code should be 0
487483
488484
@require-mysql

0 commit comments

Comments
 (0)