-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
358 fix/delete posts by post status #395
Conversation
Apply fixes from StyleCI
Apply fixes from StyleCI
Change if to switch
Add Module for delete term by count Fix #178
Apply fixes from StyleCI
…tfix-prefix' into 178-feature/delete-terms--by-postfix-prefix
Apply fixes from StyleCI
Apply fixes from StyleCI
Update functions names Fix #178
Apply fixes from StyleCI
Apply fixes from StyleCI
Development is done, Ready to review |
'days' => '5', | ||
); | ||
|
||
$posts_deleted = $this->module->delete( $delete_options ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assert that some additional posts that don't match the condition are not deleted.
Do this for all the other test cases as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@rajanit2000 Make sure you are adding some asserts to check that posts that don't satisfy the condition are not getting deleted. Also pull the latest code from github. |
@sudar its ready to review |
'post_status' => 'pending', | ||
) | ||
); | ||
|
||
$delete_options = array( | ||
'post_status' => array( 'publish', 'draft' ), | ||
'limit_to' => -1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check limit_to value
Blocked by #332