Skip to content

Commit a61dc72

Browse files
Copilotswissspidy
andauthored
Fix failing tests: update behat-data URLs from wp-cli.org to wp-cli.github.io
Agent-Logs-Url: https://github.com/wp-cli/media-command/sessions/f70a3d41-3087-4796-9a52-5033dcce663d Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent d21a54d commit a61dc72

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

features/media-import.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ Feature: Manage WordPress attachments
367367
368368
Scenario: Skip importing a local file that was already imported
369369
Given download:
370-
| path | url |
371-
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
370+
| path | url |
371+
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
372372
373373
When I run `wp media import {CACHE_DIR}/large-image.jpg --porcelain`
374374
Then save STDOUT as {ATTACHMENT_ID}
@@ -390,11 +390,11 @@ Feature: Manage WordPress attachments
390390
And the return code should be 0
391391
392392
Scenario: Skip importing a remote file that was already imported
393-
When I run `wp media import 'http://wp-cli.org/behat-data/codeispoetry.png' --porcelain`
393+
When I run `wp media import 'http://wp-cli.github.io/behat-data/codeispoetry.png' --porcelain`
394394
Then save STDOUT as {ATTACHMENT_ID}
395395
And STDOUT should not be empty
396396
397-
When I run `wp media import 'http://wp-cli.org/behat-data/codeispoetry.png' --skip-duplicates`
397+
When I run `wp media import 'http://wp-cli.github.io/behat-data/codeispoetry.png' --skip-duplicates`
398398
Then STDOUT should contain:
399399
"""
400400
Skipped importing file
@@ -411,16 +411,16 @@ Feature: Manage WordPress attachments
411411
412412
Scenario: Import new file while skipping duplicates from a batch
413413
Given download:
414-
| path | url |
415-
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
414+
| path | url |
415+
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
416416
417417
When I run `wp media import {CACHE_DIR}/large-image.jpg`
418418
Then STDOUT should contain:
419419
"""
420420
Success: Imported 1 of 1 items.
421421
"""
422422
423-
When I run `wp media import {CACHE_DIR}/large-image.jpg 'http://wp-cli.org/behat-data/codeispoetry.png' --skip-duplicates`
423+
When I run `wp media import {CACHE_DIR}/large-image.jpg 'http://wp-cli.github.io/behat-data/codeispoetry.png' --skip-duplicates`
424424
Then STDOUT should contain:
425425
"""
426426
Skipped importing file

0 commit comments

Comments
 (0)