Closed mariadanieldeepak closed 6 years ago
@sudar, @rajanit2000,
I see few things to be corrected.
force_delete
should be true
since we're deleting permanently and not trashing it.
Similar changes to be made in the following lines too.
The following function name should indicate if the function deletes or trashes. Also, fix the force_delete
flag accordingly.
The following functions are missing their counterparts (i.e. Either Trashed TC is written but not deleted the vice versa)
@rajanit2000,
Glad that you were able to write test cases. Totally appreciate it. Also, do note that the Test cases are like frontline soldiers that should take the first hit when a release is planned. So keeping them solid saves us from pain.
Also, how about naming the post statuses similar to the process in baking a Pizza?
Ex. Preparing Dough, Baking, Topping. ;) Leaving some Bread crumbs in the code makes it even more delicious. What do you think?
@mariadanieldeepak
Thanks for reviewing the tests and for coming up with the list of changes.
Let's create a new issue to track them instead of reopening the old one. That way we won't have any issues while naming the branch.
@sudar,
Let's create a new issue to track them instead of reopening the old one. That way we won't have any issues while naming the branch.
A separate issue has been created and you can find it here
And hence closing this issue.
This should be done after #217
get_posts_by_status()
Once this task is done, the helper functions should be moved to the tests library repo.
While sending this task for code review create a new issue for moving the helper functions to the the test library repo