Automattic / wordbless

WorDBless allows you to use WordPress core functions in your PHPUnit tests without having to set up a database and the whole WordPress environment
Other
131 stars 6 forks source link

update untrash tests to wp 5.6 #48

Closed leogermani closed 3 years ago

leogermani commented 3 years ago

Since WP 5.6, wp_untrash_post will always set the post status to draft instead of the previous status the post had before going to trash.

This change broke the test for that function. This PR updates the test to make sure WorDBless will work in both situations.

szepeviktor commented 3 years ago

I'm very sad that we must write code for non-developers.

szepeviktor commented 3 years ago

That is like we could only use our lathe to make simple cylinders because others are not able to understand more complex objects.