- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-validation.php
r48881 r48937 391 391 $error = rest_validate_value_from_schema( 'some random string', $schema ); 392 392 $this->assertWPError( $error ); 393 $this->assert Equals( 'Invalid date.', $error->get_error_message() );393 $this->assertSame( 'Invalid date.', $error->get_error_message() ); 394 394 } 395 395 … … 409 409 $error = rest_validate_value_from_schema( array( 'raw' => array( 'a list' ) ), $schema ); 410 410 $this->assertWPError( $error ); 411 $this->assert Equals( '[raw] is not of type string.', $error->get_error_message() );411 $this->assertSame( '[raw] is not of type string.', $error->get_error_message() ); 412 412 } 413 413 … … 428 428 $error = rest_validate_value_from_schema( 30, $schema, 'param' ); 429 429 $this->assertWPError( $error ); 430 $this->assert Equals( 'param must be between 10 (inclusive) and 20 (inclusive)', $error->get_error_message() );430 $this->assertSame( 'param must be between 10 (inclusive) and 20 (inclusive)', $error->get_error_message() ); 431 431 } 432 432
Note: See TracChangeset
for help on using the changeset viewer.