File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,11 @@ Feature: Scaffold theme unit tests
90
90
"""
91
91
# This throws a warning for the password provided via command line.
92
92
And I try `mysql -u{DB_USER} -p{DB_PASSWORD} -h{MYSQL_HOST} -P{MYSQL_PORT} --protocol=tcp -e "DROP DATABASE IF EXISTS wp_cli_test_scaffold" `
93
- And I try `rm -fr /tmp/behat-wordpress-tests-lib`
94
- And I try `rm -fr /tmp/behat-wordpress`
95
- And I try `WP_TESTS_DIR=/tmp/behat-wordpress-tests-lib WP_CORE_DIR=/tmp/behat-wordpress {THEME_DIR}/p2child/bin/install-wp-tests.sh wp_cli_test_scaffold {DB_USER} {DB_PASSWORD} {DB_HOST} latest`
93
+
94
+ And I try `WP_TESTS_DIR={RUN_DIR}/wordpress-tests-lib WP_CORE_DIR={RUN_DIR}/wordpress {THEME_DIR}/p2child/bin/install-wp-tests.sh wp_cli_test_scaffold {DB_USER} {DB_PASSWORD} {DB_HOST} latest`
96
95
Then the return code should be 0
97
96
98
- When I run `cd {THEME_DIR}/p2child; WP_TESTS_DIR=/tmp/behat- wordpress-tests-lib phpunit`
97
+ When I run `cd {THEME_DIR}/p2child; WP_TESTS_DIR={RUN_DIR}/ wordpress-tests-lib phpunit`
99
98
Then STDOUT should contain:
100
99
"""
101
100
p2child/functions.php loaded.
@@ -109,7 +108,7 @@ Feature: Scaffold theme unit tests
109
108
No tests executed!
110
109
"""
111
110
112
- When I run `cd {THEME_DIR}/p2child; WP_MULTISITE=1 WP_TESTS_DIR=/tmp/behat- wordpress-tests-lib phpunit`
111
+ When I run `cd {THEME_DIR}/p2child; WP_MULTISITE=1 WP_TESTS_DIR={RUN_DIR}/ wordpress-tests-lib phpunit`
113
112
Then STDOUT should contain:
114
113
"""
115
114
p2child/functions.php loaded.
You can’t perform that action at this time.
0 commit comments