Query block enhanced pagination: Simplify test setup#55805
Conversation
|
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ phpunit/blocks/render-query-test.php |
|
I wasn't aware that you could use It is an abstraction integrated with Thank you for working on this enhancement! |
|
Flaky tests detected in 48732cb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6732737583
|
|
Reviewing this one it appears the test files are within ✅ I updated the PHP Sync Tracking Issue for WP 6.5 to note this PR does not require a backport for WP 6.5. |
What?
Follow-up of #55714.
This PR improves how the Query block tests for the enhanced pagination are initialized.
Why?
To make tests a little bit more performant and straightforward.
How?
Using
wpSetUpBeforeClass()and$factory->post->create_many()as suggested in this discussion.Testing Instructions
N/A