-
Notifications
You must be signed in to change notification settings - Fork 26
Update behat-data URLs in tests #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -918,15 +918,15 @@ Feature: Export content. | |
| Then STDOUT should be a number | ||
| And save STDOUT as {EXPORT_ATTACHMENT_POST_ID} | ||
|
|
||
| When I run `wp media import 'http://wp-cli.org/behat-data/codeispoetry.png' --post_id={EXPORT_ATTACHMENT_POST_ID} --porcelain` | ||
| When I run `wp media import 'http://wp-cli.github.io/behat-data/codeispoetry.png' --post_id={EXPORT_ATTACHMENT_POST_ID} --porcelain` | ||
|
||
| Then STDOUT should be a number | ||
| And save STDOUT as {EXPORT_ATTACHMENT_ID} | ||
|
|
||
| When I run `wp post create --post_title='Post with attachment to ignore' --porcelain` | ||
| Then STDOUT should be a number | ||
| And save STDOUT as {IGNORE_ATTACHMENT_POST_ID} | ||
|
|
||
| When I run `wp media import 'http://wp-cli.org/behat-data/white-150-square.jpg' --post_id={IGNORE_ATTACHMENT_POST_ID} --porcelain` | ||
| When I run `wp media import 'http://wp-cli.github.io/behat-data/white-150-square.jpg' --post_id={IGNORE_ATTACHMENT_POST_ID} --porcelain` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use
|
||
| Then STDOUT should be a number | ||
| And save STDOUT as {IGNORE_ATTACHMENT_ID} | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
httpsinstead ofhttpfor the asset URL. GitHub Pages supports and often enforces HTTPS, so using it directly avoids unnecessary redirects and provides a more secure connection for downloading test assets.