WP_Test_REST_Request S

Total Complexity 25
Dependencies 1
Dependents 0
Total lines 388
Lines of code 274
Logical lines of code 118
Comment lines 37
Methods 22
Properties 0

Methods 22

Method Rating Maintainability Complexity Lines of code
test_parameters_for_put()
S
56 2 19
test_parameters_for_json_put()
S
56 2 19
test_parameters_for_json_post()
S
56 2 19
request_with_parameters()
S
55 1 23
test_has_multiple_invalid_params_validate_callback()
S
55 1 22
test_sanitize_params()
S
57 1 19
test_has_valid_params_required_flag_multiple()
S
57 1 18
test_has_valid_params_validate_callback()
S
60 1 15
test_parameter_order_json_invalid()
S
60 1 13
test_parameter_order_post()
S
61 1 12
test_parameter_order_json()
S
61 1 12
test_parameter_merging()
S
62 1 12
test_has_valid_params_required_flag()
S
63 1 12
setUp()
S
80 1 3
test_header()
S
73 1 5
test_header_missing()
S
76 1 4
test_header_multiple()
S
66 1 8
header_provider()
S
65 1 10
test_header_canonicalization()
S
79 1 3
content_type_provider()
S
68 1 7
test_content_type_parsing()
S
64 1 9
test_parameter_order()
S
64 1 10