Skip to content

Commit 76940db

Browse files
committed
Load Composer autoloader
1 parent aaa12ba commit 76940db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

features/requests.feature

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,18 @@ Feature: Requests integration with both v1 and v2
140140
"""
141141
path: wp
142142
"""
143+
And an extra-config.php file:
144+
"""
145+
require __DIR__ . "/../vendor/autoload.php";
146+
"""
143147

144148
When I run `vendor/bin/wp cli version`
145149
Then STDOUT should contain:
146150
"""
147151
WP-CLI 2.8
148152
"""
149153

150-
When I run `vendor/bin/wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST}`
154+
When I run `vendor/bin/wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --extra-php < extra-config.php`
151155
Then STDOUT should be:
152156
"""
153157
Success: Generated 'wp-config.php' file.

0 commit comments

Comments
 (0)