Changeset 48937 for trunk/tests/phpunit/tests/query/stickies.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/stickies.php
r46586 r48937 41 41 ); 42 42 43 $this->assert Equals( $expected, $q->posts );43 $this->assertSame( $expected, $q->posts ); 44 44 } 45 45 … … 49 49 $q = $GLOBALS['wp_query']; 50 50 51 $this->assert Equals( self::$posts[2], $q->posts[0]->ID );52 $this->assert Equals( self::$posts[8], $q->posts[1]->ID );53 $this->assert Equals( self::$posts[14], $q->posts[2]->ID );51 $this->assertSame( self::$posts[2], $q->posts[0]->ID ); 52 $this->assertSame( self::$posts[8], $q->posts[1]->ID ); 53 $this->assertSame( self::$posts[14], $q->posts[2]->ID ); 54 54 } 55 55 … … 83 83 ); 84 84 85 $this->assert Equals( $expected, wp_list_pluck( $q->posts, 'ID' ) );85 $this->assertSame( $expected, wp_list_pluck( $q->posts, 'ID' ) ); 86 86 } 87 87 … … 93 93 $q = $GLOBALS['wp_query']; 94 94 95 $this->assert Equals( self::$posts[2], $q->posts[0]->ID );96 $this->assert Equals( self::$posts[14], $q->posts[1]->ID );95 $this->assertSame( self::$posts[2], $q->posts[0]->ID ); 96 $this->assertSame( self::$posts[14], $q->posts[1]->ID ); 97 97 $this->assertNotContains( self::$posts[8], wp_list_pluck( $q->posts, 'ID' ) ); 98 98 }
Note: See TracChangeset
for help on using the changeset viewer.