mirror of
https://gh.wpcy.net/https://github.com/wp-cli/entity-command.git
synced 2026-04-26 01:57:47 +08:00
18 lines
418 B
Gherkin
18 lines
418 B
Gherkin
Feature: Manage network-wide custom fields.
|
|
|
|
Scenario: Non-multisite
|
|
Given a WP install
|
|
|
|
When I run `wp network-meta`
|
|
Then STDOUT should contain:
|
|
"""
|
|
usage: wp network meta
|
|
"""
|
|
|
|
When I try `wp network-meta get 1 site_admins`
|
|
Then STDOUT should be empty
|
|
And STDERR should contain:
|
|
"""
|
|
This is not a multisite install
|
|
"""
|
|
And the return code should be 1
|