mirror of
https://gh.wpcy.net/https://github.com/wp-cli/extension-command.git
synced 2026-04-28 05:03:22 +08:00
30 lines
581 B
Gherkin
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
|