OrderCaptureTest S

Total Complexity 34
Dependencies 4
Dependents 0
Total lines 1,031
Lines of code 780
Logical lines of code 185
Comment lines 93
Methods 31
Properties 0

Methods 31

Method Rating Maintainability Complexity Lines of code
test_line_item_capture_all_line_items()
S
42 2 63
test_multi_settle()
S
43 2 59
test_get_not_settled_amount_empty()
S
49 1 40
test_add_item_capture_button()
S
48 1 38
test_line_item_capture_one_line_item()
S
48 1 38
test_capture_full_order_button()
S
48 1 37
test_get_not_settled_amount_full()
S
50 1 36
test_settle_items_success()
S
51 1 33
test_get_item_data_prices_include_tax()
S
51 1 29
test_settle_item_api_failed()
S
52 1 29
test_capture_full_order_button_with_zero_settled_amount()
S
53 1 27
test_check_capture_allowed_with_reepay_subscription()
S
64 2 11
test_settle_item_api_success()
S
54 1 25
test_settle_item_api_error()
S
53 1 25
test_get_item_price_product_with_taxes()
S
53 1 25
test_get_item_data_prices_not_include_tax()
S
54 1 24
test_settle_items_with_api_failed()
S
55 1 24
test_get_item_price_product_with_discount()
S
55 1 22
test_settle_item_not_allowed_by_api()
S
56 1 20
test_get_item_price_product()
S
57 1 20
test_settle_items_with_wp_error()
S
57 1 20
test_settle_item_zero_total()
S
58 1 18
test_get_item_price_fee()
S
61 1 15
test_get_item_price_shipping()
S
61 1 15
test_check_capture_allowed_allowed_by_api()
S
60 1 15
test_check_capture_allowed_not_allowed_by_api()
S
60 1 15
test_settle_item_already_settled()
S
61 1 15
test_capture_full_order_button_with_capture_not_allowed()
S
60 1 15
test_complete_settle()
S
61 1 13
test_check_capture_allowed_with_wp_error()
S
66 1 9
test_check_capture_allowed_with_non_reepay_gateway()
S
72 1 5