Changeset 30159 for trunk/tests/phpunit/tests/post/getPages.php
- Timestamp:
- 11/01/2014 08:43:55 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/getPages.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPages.php
r28399 r30159 269 269 $this->assertCount( 2, $exclude6 ); 270 270 } 271 272 /** 273 * @ticket 14477 274 */ 275 function test_get_pages_interrupted_hierarchy() { 276 $page1 = $this->factory->post->create( array( 'post_type' => 'page' ) ); 277 $page2 = $this->factory->post->create( array( 'post_type' => 'page', 'post_parent' => $page1 ) ); 278 add_post_meta( $page2, 'color', 'red' ); 279 $page3 = $this->factory->post->create( array( 'post_type' => 'page', 'post_parent' => $page2 ) ); 280 add_post_meta( $page3, 'color', 'blue' ); 281 282 $pages = get_pages( array( 'child_of' => $page1, 'meta_key' => 'color', 'meta_value' => 'blue' ) ); 283 $this->assertEqualSets( array( $page3 ), wp_list_pluck( $pages, 'ID' ) ); 284 } 271 285 }
Note: See TracChangeset
for help on using the changeset viewer.