Changes between Initial Version and Version 1 of Ticket #39140, comment 3
- Timestamp:
- 01/08/2019 07:53:59 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #39140, comment 3
initial v1 37 37 $post_b = self::factory()->post->create( array( 'post_category' => array( $spain ) ) ); 38 38 $post_c = self::factory()->post->create( array( 'post_category' => array( $argentina, $spain ) ) ); 39 $post_d = self::factory()->post->create( array( 'post_category' => array( $europe, $south_america ) ) ); 39 40 40 41 $posts = get_posts( … … 54 55 ); 55 56 56 // ok!57 57 $this->assertEquals( 1, count( $posts ) ); 58 58 … … 72 72 ) 73 73 ); 74 75 // failed! count( $posts ) = 0! 76 $this->assertEquals( 1, count( $posts ) ); 74 // failed !!! Actual: 0 75 $this->assertEquals( 2, count( $posts ) ); 77 76 78 77 }