Omise_Payment_Test S

Total Complexity 13
Dependencies 7
Dependents 0
Total lines 221
Lines of code 156
Logical lines of code 73
Comment lines 7
Methods 13
Properties 4

Methods 13

Method Rating Maintainability Complexity Lines of code
setUp()
S
45 1 46
omisePaymentImpl()
S
62 1 15
test_get_provider_returns_the_payment_method_provider()
S
61 1 13
test_is_available_returns_false_if_capability_returns_null()
S
62 1 12
test_get_provider_returns_null_if_the_source_type_is_not_enabled_in_settings()
S
62 1 12
test_payment_failed_throws_exception_with_charge_failure_message()
S
63 1 11
test_is_available_returns_boolean_whether_method_is_supported_from_capability()
S
65 1 9
is_available_data_provider()
S
72 1 6
test_is_available_returns_false_if_gateway_is_not_enabled()
S
73 1 5
test_payment_failed_updates_the_order_and_throws_exception()
S
66 1 8
test_payment_failed_throws_exception_with_reason()
S
68 1 7
test_get_provider_returns_null_if_no_payment_method_enabled_in_settings()
S
68 1 7
mockOmiseSetting()
S
72 1 5