mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Tests: Bring some modernization to wp_insert_post() tests.
Includes: * Using `assertIsInt()` instead of `assertIsNumeric()` for post IDs. * Using consistent variable names for post data and retrieved posts. * Removing added filters before performing assertions, not after. * Removing unused `Tests_Post::$post_ids` property. * Correcting the order of arguments in some assertions. * Converting some `foreach()` loops to data providers. * Wrapping long lines for better readability. Follow-up to [13/tests], [14/tests], [167/tests], [496/tests], [1174/tests], [1246/tests], [1287/tests], [1307/tests], [1326/tests], [30510], [33261], [33630], [34762], [46279], [50012], [51438]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@53782 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4ec275f552
commit
13e664a412