Skip to content

Commit bbaf0fa

Browse files
Nikschavanschlessera
authored andcommitted
Delete plugins update transient when testing plugin updates
1 parent 6b9c804 commit bbaf0fa

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

features/plugin.feature

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -350,18 +350,12 @@ Feature: Manage WordPress plugins
350350
Plugin installed successfully.
351351
"""
352352

353-
When I run `wp plugin delete akismet hello`
354-
Then STDOUT should contain:
355-
"""
356-
Deleted 2 of 2 plugins.
357-
"""
358-
359353
When I run `wp plugin list --fields=name,status,update --status=inactive`
360354
Then STDOUT should be a table containing rows:
361-
| name | status | update |
355+
| name | status | update |
362356
| wordpress-importer | inactive | available |
363357

364-
When I run `wp transient delete update_themes --network`
358+
When I run `wp transient delete update_plugins --network`
365359
Then STDOUT should be:
366360
"""
367361
Success: Transient deleted.
@@ -370,7 +364,7 @@ Feature: Manage WordPress plugins
370364
When I run `wp plugin list --fields=name,status,update --status=inactive --skip-update-check`
371365
Then STDOUT should be a table containing rows:
372366
| name | status | update |
373-
| wordpress-importer | inactive | none |
367+
| wordpress-importer | inactive | none |
374368

375369
Scenario: Install a plugin when directory doesn't yet exist
376370
Given a WP install

0 commit comments

Comments
 (0)