Changeset 57244
- Timestamp:
- 01/06/2024 12:59:49 PM (13 months ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/wpAjaxImageEditor.php
r56421 r57244 53 53 54 54 $this->assertObjectHasProperty( 'error', $ret ); 55 $this->assert Equals( 'Images cannot be scaled to a size larger than the original.', $ret->error );55 $this->assertSame( 'Images cannot be scaled to a size larger than the original.', $ret->error ); 56 56 } 57 57 -
trunk/tests/phpunit/tests/ajax/wpAjaxInlineSave.php
r56802 r57244 111 111 $this->assertSame( 'draft', $post->post_status ); 112 112 113 $this->assert Equals( '0000-00-00 00:00:00', $post->post_date_gmt );113 $this->assertSame( '0000-00-00 00:00:00', $post->post_date_gmt ); 114 114 115 115 // Set up a request. … … 143 143 $post_date = sprintf( '%04d-%02d-%02d %02d:%02d:%02d', $_POST['aa'], $_POST['mm'], $_POST['jj'], $_POST['hh'], $_POST['mn'], $_POST['ss'] ); 144 144 145 $this->assert Equals( '0000-00-00 00:00:00', $post->post_date_gmt );145 $this->assertSame( '0000-00-00 00:00:00', $post->post_date_gmt ); 146 146 } 147 147 … … 168 168 $this->assertSame( 'draft', $post->post_status ); 169 169 170 $this->assert Equals( '0000-00-00 00:00:00', $post->post_date_gmt );170 $this->assertSame( '0000-00-00 00:00:00', $post->post_date_gmt ); 171 171 172 172 // Set up a request. … … 198 198 $post = get_post( $post->ID ); 199 199 200 $this->assert Equals( '2020-09-11 19:20:11', $post->post_date_gmt );200 $this->assertSame( '2020-09-11 19:20:11', $post->post_date_gmt ); 201 201 } 202 202 } -
trunk/tests/phpunit/tests/dependencies/scripts.php
r57187 r57244 3367 3367 wp_default_packages_vendor( $wp_scripts ); 3368 3368 3369 $this->assert Equals( $package_json[ $script ], $wp_scripts->query( $script, 'registered' )->ver );3369 $this->assertSame( $package_json[ $script ], $wp_scripts->query( $script, 'registered' )->ver ); 3370 3370 } 3371 3371 -
trunk/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRules.php
r57186 r57244 36 36 } 37 37 38 $this->assert Equals(38 $this->assertSame( 39 39 $tag_name, 40 40 $processor->get_tag(), … … 126 126 127 127 $p->step(); 128 $this->assert Equals( 'DIV', $p->get_tag(), 'Did not stop at initial DIV tag.' );128 $this->assertSame( 'DIV', $p->get_tag(), 'Did not stop at initial DIV tag.' ); 129 129 $this->assertFalse( $p->is_tag_closer(), 'Did not find that initial DIV tag is an opener.' ); 130 130 … … 134 134 */ 135 135 $this->assertTrue( $p->step(), 'Found no further tags when it should have found the closing DIV' ); 136 $this->assert Equals( 'DIV', $p->get_tag(), "Did not skip unexpected BUTTON; stopped at {$p->get_tag()}." );136 $this->assertSame( 'DIV', $p->get_tag(), "Did not skip unexpected BUTTON; stopped at {$p->get_tag()}." ); 137 137 $this->assertTrue( $p->is_tag_closer(), 'Did not find that the terminal DIV tag is a closer.' ); 138 138 } -
trunk/tests/phpunit/tests/theme.php
r57129 r57244 1260 1260 switch_theme( $old_theme->get_stylesheet() ); 1261 1261 1262 $this->assert Equals( $old_root . '/test', $path1, 'The original stylesheet path is not correct' );1263 $this->assert Equals( $new_root . '/test', $path2, 'The new stylesheet path is not correct' );1262 $this->assertSame( $old_root . '/test', $path1, 'The original stylesheet path is not correct' ); 1263 $this->assertSame( $new_root . '/test', $path2, 'The new stylesheet path is not correct' ); 1264 1264 } 1265 1265 … … 1303 1303 switch_theme( $old_theme->get_stylesheet() ); 1304 1304 1305 $this->assert Equals( $old_root . '/test-parent', $path1, 'The original template path is not correct' );1306 $this->assert Equals( $new_root . '/test-parent', $path2, 'The new template path is not correct' );1305 $this->assertSame( $old_root . '/test-parent', $path1, 'The original template path is not correct' ); 1306 $this->assertSame( $new_root . '/test-parent', $path2, 'The new template path is not correct' ); 1307 1307 } 1308 1308 }
Note: See TracChangeset
for help on using the changeset viewer.