Changeset 48937 for trunk/tests/phpunit/tests/query/setupPostdata.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/setupPostdata.php
r48113 r48937 166 166 $this->assertSame( 0, $GLOBALS['multipage'] ); 167 167 $this->assertSame( 1, $GLOBALS['numpages'] ); 168 $this->assert Equals( array( 'Page 0' ), $GLOBALS['pages'] );168 $this->assertSame( array( 'Page 0' ), $GLOBALS['pages'] ); 169 169 } 170 170 … … 179 179 $this->assertSame( 1, $GLOBALS['multipage'] ); 180 180 $this->assertSame( 4, $GLOBALS['numpages'] ); 181 $this->assert Equals( array( 'Page 0', 'Page 1', 'Page 2', 'Page 3' ), $GLOBALS['pages'] );181 $this->assertSame( array( 'Page 0', 'Page 1', 'Page 2', 'Page 3' ), $GLOBALS['pages'] ); 182 182 } 183 183 … … 195 195 $this->assertSame( 1, $GLOBALS['multipage'] ); 196 196 $this->assertSame( 3, $GLOBALS['numpages'] ); 197 $this->assert Equals( array( 'Page 1', 'Page 2', 'Page 3' ), $GLOBALS['pages'] );197 $this->assertSame( array( 'Page 1', 'Page 2', 'Page 3' ), $GLOBALS['pages'] ); 198 198 } 199 199 … … 206 206 setup_postdata( $post ); 207 207 208 $this->assert Equals( array( 'Page 0', "Page 1\nhas a line break", 'Page 2', "\nPage 3" ), $GLOBALS['pages'] );208 $this->assertSame( array( 'Page 0', "Page 1\nhas a line break", 'Page 2', "\nPage 3" ), $GLOBALS['pages'] ); 209 209 } 210 210 … … 412 412 setup_postdata( $a_post ); 413 413 $content = get_echo( 'the_content' ); 414 $this->assert Equals( $post_id, $GLOBALS['post']->ID );414 $this->assertSame( $post_id, $GLOBALS['post']->ID ); 415 415 $this->assertNotEquals( '<p>global post</p>', strip_ws( $content ) ); 416 416 wp_reset_postdata(); … … 428 428 setup_postdata( $post ); 429 429 430 $this->assert Equals( $GLOBALS['pages'], $this->pages_global );430 $this->assertSame( $GLOBALS['pages'], $this->pages_global ); 431 431 } 432 432
Note: See TracChangeset
for help on using the changeset viewer.