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
6 changes: 4 additions & 2 deletions features/plugin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,10 @@ Feature: Manage WordPress plugins
Automattic
"""

When I run `wp eval "echo get_site_transient('update_plugins')->last_checked;"`
Then save STDOUT as {LAST_UPDATED}
When I run `wp eval "set_site_transient( 'update_plugins', (object) array_merge( (array) get_site_transient( 'update_plugins' ), array( 'last_checked' => time() + DAY_IN_SECONDS ) ) );"`
And I run `wp eval "echo get_site_transient('update_plugins')->last_checked;"`
Then STDOUT should be a number
And save STDOUT as {LAST_UPDATED}

When I run `wp plugin list --skip-update-check`
Then STDOUT should not be empty
Expand Down
6 changes: 4 additions & 2 deletions features/theme.feature
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,10 @@ Feature: Manage WordPress themes
When I run `wp theme list`
Then STDOUT should not be empty

When I run `wp eval "echo get_site_transient( 'update_themes' )->last_checked;"`
Then save STDOUT as {LAST_UPDATED}
When I run `wp eval "set_site_transient( 'update_themes', (object) array_merge( (array) get_site_transient( 'update_themes' ), array( 'last_checked' => time() + DAY_IN_SECONDS ) ) );"`
And I run `wp eval "echo get_site_transient( 'update_themes' )->last_checked;"`
Then STDOUT should be a number
And save STDOUT as {LAST_UPDATED}

When I run `wp theme list --skip-update-check`
Then STDOUT should not be empty
Expand Down