Changeset 48937 for trunk/tests/phpunit/tests/query.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query.php
r46586 r48937 23 23 while ( $second_query->have_posts() ) { 24 24 $second_query->the_post(); 25 $this->assert Equals( get_the_ID(), $nested_post_id );25 $this->assertSame( get_the_ID(), $nested_post_id ); 26 26 } 27 27 $first_query->reset_postdata(); 28 $this->assert Equals( get_the_ID(), $post_id );28 $this->assertSame( get_the_ID(), $post_id ); 29 29 } 30 30 } … … 35 35 function test_default_query_var() { 36 36 $query = new WP_Query; 37 $this->assert Equals( '', $query->get( 'nonexistent' ) );37 $this->assertSame( '', $query->get( 'nonexistent' ) ); 38 38 $this->assertFalse( $query->get( 'nonexistent', false ) ); 39 39 $this->assertTrue( $query->get( 'nonexistent', true ) ); … … 50 50 $this->go_to( get_feed_link() ); 51 51 52 $this->assert Equals( 30, get_query_var( 'posts_per_page' ) );52 $this->assertSame( 30, get_query_var( 'posts_per_page' ) ); 53 53 } 54 54 … … 520 520 521 521 $this->assertFalse( $GLOBALS['wp_query']->is_404() ); 522 $this->assert Equals( $post_id, $GLOBALS['wp_query']->post->ID );522 $this->assertSame( $post_id, $GLOBALS['wp_query']->post->ID ); 523 523 } 524 524 … … 553 553 554 554 $this->assertFalse( $GLOBALS['wp_query']->is_404() ); 555 $this->assert Equals( $post_id, $GLOBALS['wp_query']->post->ID );555 $this->assertSame( $post_id, $GLOBALS['wp_query']->post->ID ); 556 556 } 557 557
Note: See TracChangeset
for help on using the changeset viewer.