Skip to content

Conversation

@thrijith
Copy link
Member

Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @thrijith! Can you include a feature test for this too?

@thrijith
Copy link
Member Author

thrijith commented Mar 1, 2019

Hi @danielbachhuber, I have added a test in an existing scenario. LMK if it's ok.

Then STDOUT should be:
"""
0
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also include a test that makes sure there's a non-zero value before wp site empty is run?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how to do that, should I create a dummy page and assign it as privacy page?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should I create a dummy page and assign it as privacy page?

Yes, this would be fine.

@danielbachhuber danielbachhuber self-requested a review March 4, 2019 14:20
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks @thrijith

@danielbachhuber danielbachhuber added this to the 2.0.3 milestone Mar 4, 2019
@danielbachhuber danielbachhuber added the command:site-empty Related to 'site empty' command label Mar 4, 2019
@danielbachhuber danielbachhuber merged commit af461e3 into wp-cli:master Mar 4, 2019
@thrijith thrijith deleted the feature/update-site-empty branch March 4, 2019 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:site-empty Related to 'site empty' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants