WooCommerce_Cart_Count_Shortcode_Test S

Total Complexity 17
Dependencies 0
Dependents 0
Total lines 127
Lines of code 89
Logical lines of code 52
Comment lines 0
Methods 17
Properties 0

Methods 17

Method Rating Maintainability Complexity Lines of code
setUp()
S
75 1 4
test_show_cart_if_has_item_in_cart_and_set_items_in_cart_text()
S
73 1 5
test_show_total_price_to_cart_if_has_product_in_cart()
S
73 1 5
test_show_link_to_cart_if_has_product_in_cart()
S
73 1 5
test_show_link_to_shop_if_has_no_product_in_cart()
S
69 1 6
test_put_custom_class_should_render_html_correctly()
S
73 1 5
test_put_empty_cart_text_as_store_should_show_text_if_no_product_in_cart()
S
70 1 6
test_should_not_show_cart_text_if_no_item_in_cart()
S
70 1 6
test_not_show_items_in_the_cart_if_set_show_items_as_false()
S
73 1 5
tearDown()
S
81 1 3
test_show_items_in_the_cart_if_set_show_items_as_true()
S
73 1 5
test_if_no_put_icon_should_not_render_icon_html()
S
73 1 5
test_put_any_icon_should_render_any_icon_html_correctly()
S
73 1 5
test_basket_icon_should_render_cart_icon_html_as_default_correctly()
S
73 1 5
test_cart_icon_should_render_cart_icon_html_as_default_correctly()
S
73 1 5
test_woocommerce_cart_count_shortcode_is_registered_to_shortcode_handler()
S
66 1 9
test_show_total_price_with_custom_text_to_cart_if_has_product_in_cart()
S
73 1 5