WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39140, comment 3


Ignore:
Timestamp:
01/08/2019 07:53:59 PM (11 months ago)
Author:
Toro_Unit
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39140, comment 3

    initial v1  
    3737                $post_b = self::factory()->post->create( array( 'post_category' => array( $spain ) ) );
    3838                $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 ) ) );
    3940
    4041                $posts = get_posts(
     
    5455                );
    5556
    56                 // ok!
    5757                $this->assertEquals( 1, count( $posts ) );
    5858
     
    7272                        )
    7373                );
    74      
    75                 // failed! count( $posts ) = 0!
    76                 $this->assertEquals( 1, count( $posts ) );
     74                // failed !!! Actual: 0
     75                $this->assertEquals( 2, count( $posts ) );
    7776
    7877        }