Skip to content

Add a unit test for wp_recursive_ksort - #40149

Merged
gziolo merged 2 commits into
trunkfrom
add/unit-test-for-recursive-ksort
Apr 7, 2022
Merged

gziolo merged 2 commits into
trunkfrom
add/unit-test-for-recursive-ksort

Conversation

@scruffian

Copy link
Copy Markdown
Contributor

What?

This was added in #39842, but without a unit test, so this PR adds the test.

Why?

All new functions in core need unit tests.

How?

Compare the result of calling the function with a static array.

Testing Instructions

Check the tests pass.

@scruffian
scruffian requested a review from adamziel April 7, 2022 13:39
@scruffian scruffian self-assigned this Apr 7, 2022
@gziolo gziolo added Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Apr 7, 2022

@gziolo gziolo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Let's land as soon as CI turns green 👍🏻

Thank you so much 🙇🏻

@gziolo
gziolo merged commit f013bd3 into trunk Apr 7, 2022
@gziolo
gziolo deleted the add/unit-test-for-recursive-ksort branch April 7, 2022 14:20
@github-actions github-actions Bot added this to the Gutenberg 13.0 milestone Apr 7, 2022
@gziolo

gziolo commented Apr 11, 2022

Copy link
Copy Markdown
Member

Changes will get backported to WP core with WordPress/wordpress-develop#2534.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants