- Timestamp:
- 01/28/2019 04:53:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-sanitization.php
r44546 r44703 39 39 ); 40 40 $this->assertEquals( 'Hello', rest_sanitize_value_from_schema( 'Hello', $schema ) ); 41 $this->assertEquals( '1.10', rest_sanitize_value_from_schema( 1.10, $schema ) ); 41 $this->assertEquals( '1.10', rest_sanitize_value_from_schema( '1.10', $schema ) ); 42 $this->assertEquals( '1.1', rest_sanitize_value_from_schema( 1.1, $schema ) ); 42 43 $this->assertEquals( '1', rest_sanitize_value_from_schema( 1, $schema ) ); 43 44 }
Note: See TracChangeset
for help on using the changeset viewer.