WP_Test_REST_Terms_Controller S

Total Complexity 47
Dependencies 2
Dependents 0
Total lines 603
Lines of code 515
Logical lines of code 370
Comment lines 14
Methods 45
Properties 0

Methods 45

Method Rating Maintainability Complexity Lines of code
test_get_terms_pagination_headers()
S
43 2 56
check_taxonomy_term()
S
59 2 14
test_get_items_parent_zero_arg()
S
51 1 28
test_get_items_parent_zero_arg_string()
S
51 1 28
test_get_items_orderby_args()
S
54 1 22
test_update_item()
S
55 1 19
test_get_items_search_args()
S
57 1 17
check_get_taxonomy_terms_response()
S
56 1 17
test_get_items_custom_tax_post_args()
S
56 1 16
test_get_item_schema()
S
57 1 16
test_get_items_hide_empty_arg()
S
59 1 13
test_get_items_post_args()
S
59 1 13
test_create_item()
S
60 1 13
test_prepare_taxonomy_term_child()
S
59 1 13
test_create_item_with_parent()
S
61 1 11
test_update_item_parent()
S
61 1 11
setUp()
S
66 1 9
test_register_routes()
S
69 1 7
test_get_items()
S
72 1 5
test_get_items_by_parent_non_found()
S
63 1 10
test_get_terms_parent_arg()
S
62 1 10
test_get_terms_private_taxonomy()
S
65 1 8
test_get_terms_invalid_taxonomy()
S
72 1 5
test_get_item()
S
72 1 5
test_get_term_invalid_taxonomy()
S
72 1 5
test_get_term_invalid_term()
S
71 1 5
test_get_term_private_taxonomy()
S
66 1 7
test_create_item_invalid_taxonomy()
S
67 1 7
test_create_item_incorrect_permissions()
S
67 1 7
test_create_item_missing_arguments()
S
70 1 6
test_create_item_invalid_parent()
S
64 1 9
test_create_item_parent_non_hierarchical_taxonomy()
S
66 1 8
test_update_item_invalid_taxonomy()
S
67 1 7
test_update_item_invalid_term()
S
67 1 7
test_update_item_incorrect_permissions()
S
65 1 8
test_update_item_invalid_parent()
S
65 1 8
test_update_item_parent_non_hierarchical_taxonomy()
S
65 1 8
test_delete_item()
S
62 1 10
test_delete_item_invalid_taxonomy()
S
70 1 6
test_delete_item_invalid_term()
S
70 1 6
test_delete_item_incorrect_permissions()
S
67 1 7
test_prepare_item()
S
68 1 7
test_get_item_schema_non_hierarchical()
S
65 1 8
tearDown()
S
74 1 5
check_get_taxonomy_term_response()
S
66 1 8