Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Payment
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2016 at 16:41 UTC
Updated:
18 Sep 2016 at 22:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dom. commentedProposed resolution
The following patch defines
PS: Obvisouly at the moment, this patch applies only to "payment" branch available on GitHub
Comment #3
dom. commentedComment #4
dom. commentedAnother proposed resolution
The following patch is more narrow focussed on Gateway itself. It contains:
PS: Obvisouly at the moment, this patch applies only to "payment" branch available on GitHub
Comment #5
dom. commentedCreditCardType coverage
The following patch adds coverage for unit testing the CreditCardType class. It contains:
PS: Obvisouly at the moment, this patch applies only to "payment" branch available on GitHub
Comment #6
dom. commentedAnother CreditCardType coverage
The following patch adds coverage for unit testing the CreditCardType class. It contains:
PS: Obvisouly at the moment, this patch applies only to "payment" branch available on GitHub
Comment #7
borisson_Added a pull request for #2: https://github.com/drupalcommerce/commerce/pulls
I didn't notice the other tests added here before I did work on the unit tests yesterday. I can add the coverage for all the getters as well, but I'm not a big fan of testing all getters and setters, the added value of tests is rather small for a simple getter.
See https://github.com/drupalcommerce/commerce/pull/459 and https://github.com/drupalcommerce/commerce/pull/458
Comment #8
bojanz commentedCommitted the CreditCard and CreditCardType unit tests. I did keep the getter tests, because they have saved me from stupid errors in the past.
Now what remains is for me to commit the functional tests.
Comment #10
bojanz commentedComment #11
bojanz commentedSeparated, rewrote, committed the dummy payment method in #2794317: Create an example onsite gateway.
Rebasing the functional tests on top of that.
Comment #12
bojanz commentedLet's be more precise, since there are other areas that will also need functional tests.
Comment #14
bojanz commentedAnd we're done here. Thanks, everyone.