Skip to content
Draft
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require-dev": {
"wp-cli/entity-command": "^1.3 || ^2 || ^3",
"wp-cli/extension-command": "^2.0 || ^3",
"wp-cli/wp-cli-tests": "^5"
"wp-cli/wp-cli-tests": "dev-cached-extension-installs as 5.3.99"
},
"config": {
"process-timeout": 7200,
Expand Down
15 changes: 12 additions & 3 deletions features/media-image-size.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Feature: List image sizes
Scenario: Basic usage
Given a WP install
# Differing themes can have differing default image sizes. Let's stick to one.
And I try `wp theme install twentynineteen --activate`
And these installed and active themes:
"""
twentynineteen
"""

When I run `wp media image-size`
Then STDOUT should be a table containing rows:
Expand Down Expand Up @@ -32,7 +35,10 @@ Feature: List image sizes
Scenario: Basic usage with plugin which registers custom image size
Given a WP install
# Differing themes can have differing default image sizes. Let's stick to one.
And I try `wp theme install twentynineteen --activate`
And these installed and active themes:
"""
twentynineteen
"""
And a wp-content/plugins/foo-bar.php file:
"""
<?php
Expand Down Expand Up @@ -82,7 +88,10 @@ Feature: List image sizes
Scenario: Basic usage (pre-WP-5.3)
Given a WP install
# Differing themes can have differing default image sizes. Let's stick to one.
And I try `wp theme install twentynineteen --activate`
And these installed and active themes:
"""
twentynineteen
"""

When I run `wp media image-size`
Then STDOUT should be a table containing rows:
Expand Down
5 changes: 4 additions & 1 deletion features/media-prune.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ Feature: Prune WordPress attachment thumbnails

Background:
Given a WP install
And I try `wp theme install twentynineteen --activate`
And these installed and active themes:
"""
twentynineteen
"""

Scenario: Prune all images while none exists
When I try `wp media prune --yes`
Expand Down
5 changes: 4 additions & 1 deletion features/media-regenerate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ Feature: Regenerate WordPress attachments

Background:
Given a WP install
And I try `wp theme install twentynineteen --activate`
And these installed and active themes:
"""
twentynineteen
"""

Scenario: Regenerate all images while none exists
When I try `wp media regenerate --yes`
Expand Down
Loading