Skip to content

Commit 994f36f

Browse files
Merge pull request #58 from wp-cli/patch-57
Use custom drop-in plugin for testing
2 parents f1f9110 + 8652ac0 commit 994f36f

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

features/plugin.feature

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -500,26 +500,24 @@ Feature: Manage WordPress plugins
500500

501501
When I run `wp plugin list --fields=name`
502502
Then STDOUT should not contain:
503-
"""
504-
query-monitor
505-
"""
503+
"""
504+
query-monitor
505+
"""
506506

507507
Scenario: Show dropins plugin list
508508
Given a WP install
509+
And a wp-content/db-error.php file:
510+
"""
511+
<?php
512+
"""
509513

510-
When I run `rm -rf wp-content/plugins`
511-
And I run `if test -d wp-content/plugins; then echo "fail"; fi`
512-
Then STDOUT should be empty
513-
514-
When I run `wp plugin install query-monitor --activate`
515-
Then STDOUT should not be empty
516-
517-
When I run `wp plugin list --status=active --fields=name,status`
518-
Then STDOUT should be a table containing rows:
519-
| name | status |
520-
| query-monitor | active |
514+
When I run `wp plugin list --status=active`
515+
Then STDOUT should not contain:
516+
"""
517+
db-error.php
518+
"""
521519

522520
When I run `wp plugin list --status=dropin --fields=name,title,description`
523521
Then STDOUT should be a table containing rows:
524-
| name | title | description |
525-
| db.php | Query Monitor Database Class | Custom database class. |
522+
| name | title | description |
523+
| db-error.php | | Custom database error message. |

0 commit comments

Comments
 (0)