WP_Test_REST_Pages_Controller S

Total Complexity 21
Dependencies 1
Dependents 0
Total lines 233
Lines of code 174
Logical lines of code 103
Comment lines 0
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
test_get_pages_params()
S
54 2 22
test_get_item_schema()
S
51 1 28
test_create_page_with_parent()
S
54 1 21
tearDown()
S
72 2 6
test_create_item_with_template()
S
59 1 14
test_update_page_menu_order_to_zero()
S
59 1 14
test_update_page_menu_order()
S
60 1 13
setup_test_template()
S
65 1 11
setUp()
S
65 1 10
test_register_routes()
S
91 1 2
test_get_items()
S
91 1 2
test_get_item()
S
91 1 2
test_get_item_invalid_post_type()
S
69 1 6
test_create_item()
S
91 1 2
test_create_page_with_invalid_parent()
S
63 1 10
test_update_item()
S
91 1 2
test_delete_item()
S
91 1 2
test_prepare_item()
S
91 1 2
set_post_data()
S
73 1 5