File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
tests/phpunit/tests/rest-api Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -852,8 +852,8 @@ public function test_internal_schema_keywords_stripped_from_nested_sub_schemas()
852852 'description ' => 'Tests stripping from all sub-schema locations ' ,
853853 'category ' => 'general ' ,
854854 'input_schema ' => array (
855- 'type ' => 'object ' ,
856- 'anyOf ' => array (
855+ 'type ' => 'object ' ,
856+ 'anyOf ' => array (
857857 array (
858858 'type ' => 'object ' ,
859859 'sanitize_callback ' => 'sanitize_text_field ' ,
@@ -869,29 +869,29 @@ public function test_internal_schema_keywords_stripped_from_nested_sub_schemas()
869869 'arg_options ' => array ( 'sanitize_callback ' => 'absint ' ),
870870 ),
871871 ),
872- 'oneOf ' => array (
872+ 'oneOf ' => array (
873873 array (
874874 'type ' => 'string ' ,
875875 'sanitize_callback ' => 'sanitize_text_field ' ,
876876 ),
877877 ),
878- 'allOf ' => array (
878+ 'allOf ' => array (
879879 array (
880880 'type ' => 'object ' ,
881881 'validate_callback ' => 'rest_validate_request_arg ' ,
882882 ),
883883 ),
884- 'not ' => array (
884+ 'not ' => array (
885885 'type ' => 'null ' ,
886886 'arg_options ' => array ( 'sanitize_callback ' => 'absint ' ),
887887 ),
888- 'patternProperties ' => array (
888+ 'patternProperties ' => array (
889889 '^S_ ' => array (
890890 'type ' => 'string ' ,
891891 'sanitize_callback ' => 'sanitize_text_field ' ,
892892 ),
893893 ),
894- 'definitions ' => array (
894+ 'definitions ' => array (
895895 'address ' => array (
896896 'type ' => 'object ' ,
897897 'validate_callback ' => 'rest_validate_request_arg ' ,
You can’t perform that action at this time.
0 commit comments