Changeset 48940
- Timestamp:
- 09/04/2020 07:36:33 AM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesScreen.php
r48937 r48940 378 378 379 379 $screen->add_help_tab( $tab_1_args ); 380 $this->assert equals( $screen->get_help_tab( $tab_1 ), $tab_1_args );380 $this->assertSame( $screen->get_help_tab( $tab_1 ), $tab_1_args ); 381 381 382 382 $screen->add_help_tab( $tab_2_args ); -
trunk/tests/phpunit/tests/comment/getCommentsPagesCount.php
r48937 r48940 59 59 $this->assertSame( 0, get_comment_pages_count( $comments, 5 ) ); 60 60 $this->assertSame( 0, get_comment_pages_count( $comments ) ); 61 $this->assert equals( 0, get_comment_pages_count( null, 1 ) );61 $this->assertSame( 0, get_comment_pages_count( null, 1 ) ); 62 62 } 63 63 -
trunk/tests/phpunit/tests/formatting/JSEscape.php
r48937 r48940 36 36 $out = esc_js( "foo\rbar\nbaz\r" ); 37 37 // \r is stripped. 38 $this->assert equals( "foobar\\nbaz", $out );38 $this->assertSame( "foobar\\nbaz", $out ); 39 39 } 40 40 … … 42 42 $out = esc_js( "foo\r\nbar\nbaz\r\n" ); 43 43 // \r is stripped. 44 $this->assert equals( "foo\\nbar\\nbaz\\n", $out );44 $this->assertSame( "foo\\nbar\\nbaz\\n", $out ); 45 45 } 46 46 } -
trunk/tests/phpunit/tests/general/wpError.php
r48939 r48940 203 203 $this->wp_error->add( 'code', 'message2' ); 204 204 205 $this->assert equalSets( array( 'message', 'message2' ), $this->wp_error->get_error_messages( 'code' ) );205 $this->assertSameSets( array( 'message', 'message2' ), $this->wp_error->get_error_messages( 'code' ) ); 206 206 } 207 207 -
trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php
r48937 r48940 219 219 wp_set_current_user( self::$subscriber_id ); 220 220 $response = rest_do_request( self::BASE ); 221 $this->assert equals( 403, $response->get_status() );221 $this->assertSame( 403, $response->get_status() ); 222 222 } 223 223
Note: See TracChangeset
for help on using the changeset viewer.