Skip to content

Commit

Permalink
Add a test for the zero sites state
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Feb 6, 2024
1 parent 23bcdcb commit b016207
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/site.feature
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@ Feature: Manage sites in a multisite installation
Error: Invalid user ID, email or login: 'invalid_user'
"""

When I run `wp user remove-role {USER_LOGIN} --url={SITE_URL}`
Then STDOUT should contain:
"""
Success: Removed
"""

When I run `wp site list --field=url --site_user={USER_LOGIN}`
Then STDOUT should be empty


Scenario: Delete a site by slug
Given a WP multisite install

Expand Down

0 comments on commit b016207

Please sign in to comment.