Changeset 49547 for trunk/tests/phpunit/tests/rest-api/rest-request.php
- Timestamp:
- 11/09/2020 03:43:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-request.php
r49329 r49547 206 206 207 207 // Check that JSON takes precedence. 208 $this->assert Equals( $source, $this->request->get_param( 'source' ) );208 $this->assertSame( $source, $this->request->get_param( 'source' ) ); 209 209 $this->assertEquals( $accept_json, $this->request->get_param( 'has_json_params' ) ); 210 210 } … … 234 234 235 235 // Check for JSON content-type. 236 $this->assert Equals( $is_json, $this->request->is_json_content_type() );236 $this->assertSame( $is_json, $this->request->is_json_content_type() ); 237 237 } 238 238 … … 927 927 $valid = $request->has_valid_params(); 928 928 $this->assertWPError( $valid ); 929 $this->assert Equals( 'rest_invalid_param', $valid->get_error_code() );929 $this->assertSame( 'rest_invalid_param', $valid->get_error_code() ); 930 930 } 931 931 }
Note: See TracChangeset
for help on using the changeset viewer.