mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
REST API: Some documentation and test improvements for update_post_parent_caches():
* Make the function description more specific, for consistency with `update_post_author_caches()`. * Add missing `@covers` tags for the unit test. Follow-up to [53506]. See #55593. git-svn-id: https://develop.svn.wordpress.org/trunk@53507 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1516,7 +1516,7 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te
|
||||
|
||||
/**
|
||||
* @ticket 55592
|
||||
* @covers WP_REST_Posts_Controller::get_items()
|
||||
* @covers WP_REST_Posts_Controller::get_items
|
||||
*/
|
||||
public function test_get_items_with_featured_media() {
|
||||
$file = DIR_TESTDATA . '/images/canola.jpg';
|
||||
@@ -1789,6 +1789,8 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te
|
||||
|
||||
/**
|
||||
* @ticket 55593
|
||||
* @covers WP_REST_Posts_Controller::get_items
|
||||
* @covers update_post_parent_caches
|
||||
*/
|
||||
public function test_get_items_parent_ids_primed() {
|
||||
$parent_id1 = self::$post_ids[0];
|
||||
|
||||
Reference in New Issue
Block a user