- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-sanitization.php
r42343 r43571 145 145 ); 146 146 $this->assertEquals( 147 array( '1', '2' ), rest_sanitize_value_from_schema( 147 array( '1', '2' ), 148 rest_sanitize_value_from_schema( 148 149 array( 149 150 'first' => '1', 150 151 'second' => '2', 151 ), $schema 152 ), 153 $schema 152 154 ) 153 155 ); … … 169 171 'a' => 1, 170 172 'b' => 1, 171 ), rest_sanitize_value_from_schema( 173 ), 174 rest_sanitize_value_from_schema( 172 175 array( 173 176 'a' => '1', 174 177 'b' => 1, 175 ), $schema 178 ), 179 $schema 176 180 ) 177 181 ); … … 191 195 $this->assertEquals( array( 'a' => 1 ), rest_sanitize_value_from_schema( array( 'a' => '1' ), $schema ) ); 192 196 $this->assertEquals( 193 array( 'a' => 1 ), rest_sanitize_value_from_schema( 197 array( 'a' => 1 ), 198 rest_sanitize_value_from_schema( 194 199 array( 195 200 'a' => '1', 196 201 'b' => 1, 197 ), $schema 202 ), 203 $schema 198 204 ) 199 205 );
Note: See TracChangeset
for help on using the changeset viewer.