WP_Test_REST_Posts_Terms_Controller S

Total Complexity 29
Dependencies 1
Dependents 0
Total lines 302
Lines of code 223
Logical lines of code 165
Comment lines 1
Methods 28
Properties 0

Methods 28

Method Rating Maintainability Complexity Lines of code
check_taxonomy_term()
S
59 2 14
test_get_items_orderby()
S
52 1 26
test_get_item_schema()
S
58 1 15
setUp()
S
68 1 7
test_register_routes()
S
73 1 5
test_get_items()
S
67 1 7
test_get_items_invalid_post()
S
71 1 5
test_get_items_invalid_taxonomy()
S
71 1 5
test_get_item()
S
65 1 8
test_get_item_invalid_post()
S
66 1 7
test_get_item_post_wrong_post_type()
S
69 1 6
test_get_item_invalid_taxonomy()
S
71 1 5
test_get_item_invalid_taxonomy_term()
S
71 1 5
test_get_item_taxonomy_term_wrong_taxonomy()
S
68 1 6
test_get_item_unassigned_taxonomy_term()
S
68 1 6
test_get_item_term_id_not_added()
S
68 1 6
test_create_item()
S
65 1 8
test_create_item_invalid_permission()
S
68 1 6
test_create_item_invalid_post()
S
66 1 7
test_create_item_invalid_taxonomy()
S
66 1 7
test_create_item_invalid_taxonomy_term()
S
69 1 6
test_delete_item()
S
62 1 10
test_delete_item_invalid_permission()
S
65 1 8
test_delete_item_invalid_taxonomy()
S
64 1 9
test_delete_item_invalid_taxonomy_term()
S
64 1 9
test_delete_item_invalid_post()
S
63 1 9
test_update_item()
S
91 1 2
test_prepare_item()
S
64 1 9