Skip to content
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

Add unit tests for ticket #58392 #4580

Closed
wants to merge 3 commits into from

Conversation

Hug0-Drelon
Copy link

Trac ticket: https://core.trac.wordpress.org/ticket/58392

This PR adds unit tests to the previously proposed diff.

Copy link
Contributor

@audrasjb audrasjb left a comment

Choose a reason for hiding this comment

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

Everything looks good to me, except that we need a few docblocks in the provided unit tests.
You can take wpPublishPost as an example.

tests/phpunit/tests/post/wpTrashPost.php Show resolved Hide resolved
tests/phpunit/tests/post/wpTrashPost.php Show resolved Hide resolved
@Hug0-Drelon
Copy link
Author

Hi @audrasjb and @costdev 👋
Thanks for the feedback!
I've split the test and added some docblocks as you suggested.

Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @Hug0-Drelon! I've left some more thoughts in this review 🙂

tests/phpunit/tests/post/wpTrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpTrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpTrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpTrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpUntrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpUntrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpTrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpTrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpUntrashPost.php Outdated Show resolved Hide resolved
tests/phpunit/tests/post/wpUntrashPost.php Outdated Show resolved Hide resolved
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
@Hug0-Drelon
Copy link
Author

Thanks for the insight @costdev! Nice to see how standardization is going 🙂

@Hug0-Drelon Hug0-Drelon requested a review from costdev June 11, 2023 13:44
Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @Hug0-Drelon! I think that's all from me on this one!

Copy link
Contributor

@audrasjb audrasjb left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

@audrasjb
Copy link
Contributor

@audrasjb audrasjb closed this Jun 26, 2023
@Hug0-Drelon Hug0-Drelon deleted the test-58392 branch June 27, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants