Skip to content

Commit ba2fa41

Browse files
committed
Try adding tests.
1 parent c9361a5 commit ba2fa41

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

features/plugin.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,3 +676,16 @@ Feature: Manage WordPress plugins
676676
Error: Parameter errors:
677677
Invalid value specified for 'status' (Filter the output by plugin status.)
678678
"""
679+
680+
Scenario: Listing mu-plugins should include name and title
681+
Given a WP install
682+
And a wp-content/mu-plugins/test-mu.php file:
683+
"""
684+
<?php
685+
// Plugin Name: Test mu-plugin
686+
"""
687+
688+
When I run `wp plugin list --fields=name,title`
689+
Then STDOUT should be a table containing rows:
690+
| name | title |
691+
| test-mu | Test mu-plugin |

0 commit comments

Comments
 (0)