Silent_Publish_Test A

Total Complexity 70
Dependencies 1
Dependents 0
Total lines 655
Lines of code 412
Logical lines of code 217
Comment lines 73
Methods 65
Properties 4

Methods 65

Method Rating Maintainability Complexity Lines of code
assert_form_output()
S
53 4 23
create_post()
S
64 2 9
check_publish_post_hook()
S
77 2 3
test_output_field_overall_markup()
S
62 1 13
test_add_ui_when_post_type_is_not_supported()
S
64 1 11
test_filter_c2c_silent_publish_post_types()
S
62 1 11
test_saving_post_explicitly_not_being_silently_published_deletes_meta()
S
61 1 11
test_previously_silently_published_post_can_be_republished_without_silence()
S
61 1 11
test_is_silent_publish_on_by_default_not_affected_by_silent_publish_state()
S
68 1 7
test_is_silent_published_for_silent_published_post()
S
68 1 7
test_is_silent_published()
S
71 1 6
test_filter_c2c_silent_publish_default()
S
76 1 4
test_output_field_has_nonce()
S
69 1 6
test_is_silent_publish_on_by_default()
S
81 1 3
test_output_field_no_silent_publish_and_enabled()
S
70 1 6
test_output_field_no_silent_publish_and_disabled_published()
S
69 1 6
test_output_field_no_silent_publish_and_disabled_unpublished()
S
71 1 6
test_output_field_silent_publish_and_enabled()
S
70 1 6
test_is_silent_published_unaffected_by_silent_publish_default()
S
69 1 7
setUp()
S
77 1 4
test_is_silent_published_with_post_id_as_arg()
S
73 1 5
test_is_silent_published_with_post_id_as_arg_and_global_post_not_silent_published()
S
68 1 7
test_output_field_silent_publish_and_disable_published()
S
70 1 6
test_is_silent_published_with_invalid_arg()
S
77 1 4
test_add_icon_to_post_date_column_on_draft_not_silent()
S
66 1 8
test_add_icon_to_post_date_column_on_draft_silent()
S
66 1 8
test_add_icon_to_post_date_column_on_publish_not_silent()
S
66 1 8
test_add_icon_to_post_date_column_on_publish_silent()
S
66 1 8
test_admin_enqueue_scripts_not_enqueued_by_default()
S
79 1 3
test_admin_enqueue_scripts_not_enqueued_for_wrong_admin_page()
S
75 1 4
test_admin_enqueue_scripts_enqueued_on_proper_admin_page()
S
75 1 4
test_add_to_quick_edit_outputs_on_invocation()
S
79 1 3
test_add_to_quick_edit_does_not_output_on_subsequent_invocation()
S
74 1 4
test_default_behavior()
S
69 1 6
test_is_silent_published_with_post_as_arg()
S
71 1 6
test_add_ui_when_post_was_published_and_not_silently()
S
75 1 4
test_output_field_silent_publish_and_disable_unpublished()
S
70 1 6
test_saving_post_set_as_silently_published_retains_meta()
S
63 1 10
c2c_silent_publish_meta_key()
S
82 1 3
test_class_exists()
S
80 1 3
test_version()
S
80 1 3
test_plugins_loaded_action_triggers_do_init()
S
78 1 3
test_post_submitbox_misc_action_triggers_add_ui()
S
78 1 3
test_save_post_filter_triggers_save_silent_publish_status()
S
78 1 3
test_publish_post_action_triggers_publish_post()
S
78 1 3
test_quick_edit_custom_box_triggers_add_to_quick_edit()
S
78 1 3
test_admin_enqueue_scripts_triggers_admin_enqueue_scripts()
S
78 1 3
test_get_post_types()
S
74 1 4
test_c2c_silent_publish_post_types_with_custom_post_type()
S
71 1 5
test_non_silently_published_post_publishes_without_silencing()
S
67 1 7
test_saving_post_without_being_silently_published_deletes_meta()
S
63 1 10
test_output_field_default()
S
67 1 8
test_get_meta_key_name()
S
80 1 3
test_meta_key_is_registered()
S
79 1 3
test_filtered_get_meta_key_name()
S
75 1 4
test_empty_get_meta_key_name()
S
76 1 4
test_silently_published_post_publishes_silently()
S
62 1 10
test_silently_published_post_via_meta_on_draft_publishes_silently()
S
65 1 8
test_form_elements_are_output_for_unpublished_post()
S
66 1 9
test_form_elements_are_output_for_unpublished_post_with_meta_set()
S
65 1 9
test_add_ui_when_post_not_published_but_silent_publish_enabled()
S
65 1 9
test_add_ui_when_post_was_silently_published()
S
69 1 7
tearDown()
S
63 1 10
test_add_ui_when_post_was_published_and_not_silently_and_silent_default_is_true()
S
73 1 5
test_it_works()
S
69 1 6