woocommerce/tests/unit-tests
Justin Shreve fb124232cf Update Payment Tokens to follow the same pattern for custom data as other object types.
Payment tokens was introduced in 2.6 and was updated to use the new CRUD code while some of the CRUD system was still in flux.

While most things were correct, the prop handling for custom fields (like a card's last 4 digits) were directly calling meta functions, instead of delegating to the data store/parent.

This PR moves these props to `extra_data` and follows the same pattern as product types or order items. It also updates some version tags to 3.0.0. Finally, it adds an additional test for saving meta after a create which looks like it was lacking.

To Test:
* Run `phpunit`.
* Go to the "My Account" tab and add a new payment method. You need a payment gateway that supports this, like Simplify.
* Test the add a payment method flow.
* Make a test purchase using the saved payment method.
2017-03-14 12:33:35 -07:00
..
account Fix strings case (#12069) 2016-10-12 11:16:30 +01:00
api Fixed coding standards 2017-02-17 16:10:15 -02:00
cart Revert to original behavior 2017-03-07 13:17:36 -08:00
coupon Merge pull request #13516 from woocommerce/fix-13505 2017-03-10 19:07:57 +00:00
crud has_meta -> meta_exists 2017-03-14 16:49:13 +00:00
customer Fix tests 2016-11-23 16:27:18 +00:00
formatting WIP - Product CRUD (#12065) 2016-11-16 12:38:24 +00:00
log Validate handlers implement WC_Log_handler_Interface 2017-01-24 23:07:58 +01:00
order Docblocks 2017-03-08 12:02:14 -08:00
order-items Fix order item meta functions cache busting. 2017-03-09 13:36:23 -08:00
payment-tokens Update Payment Tokens to follow the same pattern for custom data as other object types. 2017-03-14 12:33:35 -07:00
product Fixed unit tests 2017-03-03 16:36:53 -03:00
settings Unit test warnings 2017-01-03 12:19:03 +00:00
shipping-zones Fix tests 2016-11-23 16:27:18 +00:00
tax Introduce get_tax_class_slugs. 2017-01-25 13:38:13 -08:00
util Fixed coding standards 2017-02-17 16:10:15 -02:00