pronamic / wp-pronamic-pay

The Pronamic Pay plugin allows you to easily accept payments with payment methods like credit card, iDEAL, Bancontact and Sofort through a variety of payment providers on your WordPress website.
https://pronamicpay.com
35 stars 14 forks source link

Use `@wordpress/env` for testing? #335

Closed remcotolsma closed 2 years ago

remcotolsma commented 2 years ago

In relation to https://github.com/pronamic/wp-pronamic-pay/issues/334 I am looking for how we can more easily test all supported extensions and gateways. I came across the following: https://github.com/WordPress/wp-feature-notifications/issues/14https://make.wordpress.org/core/2020/03/03/wp-env-simple-local-environments-for-wordpress/. Mybe that would be useful for Pronamic Pay and other Pronamic solutions?

Links

remcotolsma commented 2 years ago

Some handy stuff:

https://github.com/Olein-jp/wpblockpatterns/blob/a2b7206d4ae2263254629131c11712ab09a26886/package.json#L6-L7

https://github.com/elmastudio/aino-notification-block/blob/fe90df2d890c52e36679748d07d29b2d3308ff33/package.json#L11-L25

I also consider to develop a Pronamic Pay test data plugin that will create configuration for the supported gateways and setup some of the extensions that we support (money currency settings, test products, test forms, etc.).

remcotolsma commented 2 years ago

I have added this in some of the extension repositories: https://github.com/pronamic/wp-pronamic-pay-memberpress/blob/develop/.wp-env.json

Can be used if desired.