Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Create a functional test that creates a payment method, creates an order, goes to admin/commerce/orders/$order_id/payments, creates an authorized payment, captures the authorization, then refunds it.
Comment | File | Size | Author |
---|---|---|---|
#4 | functional_payment_admin_test_2_2820935.patch | 8.07 KB | mbreden |
#2 | functional_payment_admin_test_2820935.patch | 6.23 KB | mbreden |
Comments
Comment #2
mbreden CreditAttribution: mbreden at Acro Commerce commentedAttached the patch!
Comment #3
steveoliver CreditAttribution: steveoliver commentedLooks good -- Maybe just add a test for Void operation?
Comment #4
mbreden CreditAttribution: mbreden at Acro Commerce commentedAdded two more tests, testPaymentVoid() and testPaymentDelete().
Comment #5
steveoliver CreditAttribution: steveoliver commentedAwesome!
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedCommitted, thanks!
I removed this part:
It's not needed, the credit_card payment method type is always enabled by default.