MyStyleCartTest S

Total Complexity 17
Dependencies 12
Dependents 0
Total lines 382
Lines of code 174
Logical lines of code 134
Comment lines 125
Methods 15
Properties 0

Methods 15

Method Rating Maintainability Complexity Lines of code
mock_mystyle_metadata()
S
63 3 12
test_loop_add_to_cart_link_for_customizable_product()
S
51 1 27
test_modify_cart_item_name()
S
56 1 18
test_modify_cart_item_thumbnail()
S
58 1 16
test_constructor()
S
60 1 14
test_mystyle_add_to_cart_handler_customize()
S
59 1 13
test_mystyle_add_to_cart_handler()
S
61 1 12
test_init()
S
63 1 11
setUp()
S
77 1 4
tearDown()
S
71 1 6
test_filter_cart_button_text_doesnt_modify_button_text_when_not_mystyle_enabled()
S
68 1 7
test_filter_cart_button_text_modifies_button_text_when_mystyle_enabled()
S
64 1 9
test_filter_add_to_cart_handler_doesnt_modify_handler_when_not_mystyle_enabled()
S
66 1 8
test_loop_add_to_cart_link_for_uncustomizable_product()
S
66 1 8
test_loop_add_to_cart_link_for_variable_product()
S
65 1 9