extension-command/features/plugin-status.feature

30 lines
581 B
Gherkin

Feature: List the status of plugins
@require-wp-4.0
Scenario: Status should include drop-ins
Given a WP install
And a wp-debug.php file:
"""
<?php
define( 'WP_DEBUG', true );
"""
And a wp-cli.yml file:
"""
require:
- wp-debug.php
"""
And a wp-content/db-error.php file:
"""
<?php
"""
When I run `wp plugin status`
Then STDOUT should contain:
"""
D db-error.php
"""
And STDOUT should contain:
"""
D = Drop-In
"""
And STDERR should be empty