Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions features/media-import.feature
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Feature: Manage WordPress attachments
When I run `wp media import {CACHE_DIR}/large-image.jpg --post_id=1 --preserve-filetime --porcelain`
Then save STDOUT as {ATTACH_ID}

And I run `wp post get {ATTACH_ID} --field=post_date`
When I run `wp post get {ATTACH_ID} --field=post_date`
Then STDOUT should be:
"""
1980-01-03 08:05:00
Expand Down Expand Up @@ -254,7 +254,7 @@ Feature: Manage WordPress attachments
https://example.com/wp-content/uploads/
"""

Then STDOUT should contain:
And STDOUT should contain:
"""
/large-image.jpg
"""
Expand Down
4 changes: 2 additions & 2 deletions features/media-regenerate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ Feature: Regenerate WordPress attachments
"""
Success: Regenerated 2 of 2 images
"""
Then the wp-content/uploads/large-image-125x125.jpg file should exist
And the wp-content/uploads/large-image-125x125.jpg file should exist
And the wp-content/uploads/large-image-1-125x125.jpg file should exist
And the wp-content/uploads/large-image-200x200.jpg file should exist
And the wp-content/uploads/large-image-1-200x200.jpg file should exist
Expand Down Expand Up @@ -1032,7 +1032,7 @@ Feature: Regenerate WordPress attachments

When I run `wp media import {CACHE_DIR}/canola.jpg --title="My imported JPG attachment" --porcelain`
Then save STDOUT as {JPG_ATTACHMENT_ID}
Then the wp-content/uploads/canola-300x225.jpg file should exist
And the wp-content/uploads/canola-300x225.jpg file should exist

When I run `wp media regenerate --yes`
Then STDOUT should contain:
Expand Down