You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Verify correct siteurl and home when URL has no path
181
+
Given an empty directory
182
+
And WP files
183
+
And wp-config.php
184
+
And a database
185
+
186
+
When I run `wp core install --url=example.com --title=Test --admin_user=wpcli --admin_email=wpcli@example.org --admin_password=password --skip-email`
187
+
Then STDOUT should contain:
188
+
"""
189
+
Success: WordPress installed successfully.
190
+
"""
191
+
192
+
When I run `wp option get home`
193
+
Then STDOUT should be:
194
+
"""
195
+
http://example.com
196
+
"""
197
+
198
+
When I run `wp option get siteurl`
199
+
Then STDOUT should be:
200
+
"""
201
+
http://example.com
202
+
"""
203
+
204
+
Scenario: Verify correct siteurl and home when URL has a path
205
+
Given an empty directory
206
+
And WP files
207
+
And wp-config.php
208
+
And a database
209
+
210
+
When I run `wp core install --url=example.com/subdir --title=Test --admin_user=wpcli --admin_email=wpcli@example.org --admin_password=password --skip-email`
211
+
Then STDOUT should contain:
212
+
"""
213
+
Success: WordPress installed successfully.
214
+
"""
215
+
216
+
When I run `wp option get home`
217
+
Then STDOUT should be:
218
+
"""
219
+
http://example.com/subdir
220
+
"""
221
+
222
+
When I run `wp option get siteurl`
223
+
Then STDOUT should be:
224
+
"""
225
+
http://example.com/subdir
226
+
"""
227
+
228
+
Scenario: Install ensures correct siteurl and home regardless of PHP_SELF
229
+
Given an empty directory
230
+
And WP files
231
+
And wp-config.php
232
+
And a database
233
+
234
+
When I run `wp core install --url=https://example.com --title=Test --admin_user=wpcli --admin_email=wpcli@example.org --admin_password=password --skip-email`
235
+
Then STDOUT should contain:
236
+
"""
237
+
Success: WordPress installed successfully.
238
+
"""
239
+
240
+
When I run `wp option get home`
241
+
Then STDOUT should be:
242
+
"""
243
+
https://example.com
244
+
"""
245
+
246
+
When I run `wp option get siteurl`
247
+
Then STDOUT should be:
248
+
"""
249
+
https://example.com
250
+
"""
251
+
180
252
Scenario: Install WordPress with special characters in the admin password
0 commit comments