Need a functional payment method test that goes to user/$uid/payment-methods, adds a payment method (using the onsite_example gateway), checks the table, then deletes it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mbreden created an issue. See original summary.

mbreden’s picture

Status: Active » Needs review
FileSize
4.41 KB

Patch attached!

  • bojanz committed 4adc73d on 8.x-2.x authored by mbreden
    Issue #2820934 by mbreden: Create PaymentMethodTest
    

  • bojanz committed 85ab6fc on 8.x-2.x
    Revert "Issue #2820934 by mbreden: Create PaymentMethodTest"
    
    This...
bojanz’s picture

Status: Needs review » Needs work

The version I pushed wasn't passing, need to see why.

EDIT: The main problem is the need to specify the credit_card payment method type on the gateway, smells like a bug.

  • bojanz committed d4775d0 on 8.x-2.x
    Issue #2820934 by mbreden, bojanz: Create PaymentMethodTest
    
bojanz’s picture

Status: Needs work » Fixed

Fixed the bug, the test now passes.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.