Omise_Capability_Test S

Total Complexity 42
Dependencies 4
Dependents 0
Total lines 428
Lines of code 271
Logical lines of code 161
Comment lines 36
Methods 30
Properties 0

Methods 30

Method Rating Maintainability Complexity Lines of code
test_request_to_store_api_calls_omise_capability_api()
S
56 5 17
test_retrieve_using_new_setting_keys_if_user_submit_form()
S
52 3 24
test_retrieve_returns_value_when_it_should_call_api()
S
53 3 21
test_ajax_call_to_store_api_calls_omise_capability_api()
S
62 2 11
test_get_installment_methods_returns_payment_methods_with_name_starts_with_installment()
S
65 2 9
test_get_shopee_method_returns_correct_value()
S
64 2 10
test_get_truemoney_method_returns_correct_value()
S
64 2 10
test_get_payment_methods_returns_all_available_payment_methods()
S
60 1 14
test_retrieve_exits_when_new_setting_keys_are_from_suspicious_source()
S
60 1 13
request_to_store_api_provider()
S
63 1 11
shopee_source_provider()
S
78 1 3
setUp()
S
66 1 9
truemoney_source_provider()
S
78 1 3
test_is_zero_interest_returns_correct_value()
S
74 1 5
ajax_call_to_store_api_provider()
S
67 1 8
mockOmiseSetting()
S
68 1 7
test_get_installment_min_limit_returns_correct_value()
S
73 1 5
test_get_available_payment_methods_returns_all_available_payment_methods_with_tokenization()
S
66 1 9
test_get_tokenization_returns_correct_value()
S
67 1 8
test_get_fpx_banks_returns_correct_method()
S
74 1 5
test_get_payment_methods_filtered_by_currency()
S
68 1 7
test_get_installment_methods_filtered_by_curreny_and_charge_amount()
S
71 1 6
test_retrieve_returns_null_when_keys_not_set()
S
66 1 8
test_retrieve_returns_null_when_it_should_not_call_api()
S
69 1 7
test_retrieve_returns_existing_instance_and_fetch_new_capability_if_keys_changed()
S
66 1 8
test_retrieve_returns_existing_instance_without_extra_api_call_if_keys_not_changed()
S
66 1 8
retrieve_keys_data_provider()
S
79 1 3
test_retrieve_returns_null_when_retrieve_capability_fails()
S
64 1 9
retrieve_data_provider()
S
65 1 10
mockCapabilityRetrieve()
S
81 1 3