Changeset 28803 for trunk/tests/phpunit/tests/query/results.php
- Timestamp:
- 06/23/2014 01:14:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r28800 r28803 637 637 $this->assertEqualSets( array( $two, $three ), $result11 ); 638 638 } 639 640 /** 641 * @ticket 28611 642 */ 643 function test_duplicate_slug_in_hierarchical_post_type() { 644 register_post_type( 'handbook', array( 'hierarchical' => true ) ); 645 646 $post_1 = $this->factory->post->create( array( 'post_title' => 'Getting Started', 'post_type' => 'handbook' ) ); 647 $post_2 = $this->factory->post->create( array( 'post_title' => 'Contributing to the WordPress Codex', 'post_type' => 'handbook' ) ); 648 $post_3 = $this->factory->post->create( array( 'post_title' => 'Getting Started', 'post_parent' => $post_2, 'post_type' => 'handbook' ) ); 649 650 $result = $this->q->query( array( 'handbook' => 'getting-started', 'post_type' => 'handbook' ) ); 651 $this->assertEquals( 1, $this->q->post_count ); 652 } 653 639 654 }
Note: See TracChangeset
for help on using the changeset viewer.