Alex P.
ab5ddd9fab
Use ExperienceContext in renewals
2025-05-29 17:24:00 +03:00
Alex P.
a2d299ef2e
Use ExperienceContext in Oxxo
2025-05-29 16:48:56 +03:00
Alex P.
41b9585d2b
Use ExperienceContext in OrderProcessor
2025-05-29 16:40:35 +03:00
Alex P.
279a3452c8
Use ExperienceContext for PayPal buttons
2025-05-29 16:37:54 +03:00
Alex P.
7ea562c697
Simplify log call
2025-05-29 09:11:22 +03:00
Alex P.
25ad33c679
Remove unused class
2025-05-28 20:58:18 +03:00
carmenmaymo
34a56a8564
Merge branch 'trunk' into PCP-4603-add-subscriptions-integration-tests
2025-05-28 09:40:57 +02:00
carmenmaymo
5e53f9dace
Add vaulting subscriptions tests
2025-05-28 09:33:02 +02:00
Emili Castells Guasch
b3f5fb7473
Remove partner referrals tests for now
2025-05-27 16:20:50 +02:00
Emili Castells
b5c9a6f5f4
Merge pull request #3410 from woocommerce/PCP-4254-mexico-installments-new-ux-updates-bcdc-fix
...
Add Mexico-specific logic for BCDC (4254)
2025-05-26 16:19:01 +02:00
Emili Castells
dd80101116
Merge pull request #3408 from woocommerce/PCP-4679-v2-can-not-process-payment-if-subscriptions-is-not-selected-when-onboarding
...
Can not save payments if subscriptions is not selected when onboarding (4679)
2025-05-26 15:59:40 +02:00
Emili Castells Guasch
3a43cd4335
Fix phpunit tests
2025-05-26 12:03:11 +02:00
Daniel Dudzic
457f0fb542
🧪 Mock essential WooCommerce functions
2025-05-23 23:19:38 +02:00
Daniel Dudzic
e89103078c
🧪 Add wc_get_page_id() mock to prevent undefined function errors
2025-05-23 22:59:51 +02:00
Daniel Dudzic
0de1d21a76
🧪 Fix the DisabledFundingSourcesTest test
2025-05-23 19:11:20 +02:00
Philipp Stracker
cb6fa6eb9f
✅ Fix “data structure with flags” tests
...
Following default assuptions changed:
1. The "BILLING_AGREEMENT” feature is always sent
2. The “PAYPAL_WALLET_VAULTING_ADVANCED” flag only depends on the ACDC eligbility (not subscription-opt-in)
2025-05-23 18:08:29 +02:00
Philipp Stracker
652e001161
🎨 Apply code style to unit tests
2025-05-23 18:02:08 +02:00
Philipp Stracker
c236225105
✅ Pass “data structure” test
...
New default is, that the structure always contains
- feature BILLING_AGREEMENT
- capability PAYPAL_WALLET_VAULTING_ADVANCED
The new capability only depends on the shop country.
2025-05-23 18:00:52 +02:00
carmenmaymo
ec8b6baf70
Remove status completed in mock
2025-05-19 08:00:13 +02:00
carmenmaymo
b342d7b226
test: Add tests for PayPal Subscriptions renewal handling
...
scenarios:
- Preventing duplicate renewals for recent subscriptions
- Creating renewal orders for subscriptions older than 8 hours
- Handling subscriptions with explicit renewal meta
- Ensuring payment methods are correctly transferred to renewal orders
- Verifying transaction IDs are properly set on orders
- Managing subscription status transitions during renewal
- Handling edge cases like missing parent orders and empty subscription arrays
2025-05-12 19:01:40 +02:00
Emili Castells Guasch
c143e1a1b0
Rename tests
2025-04-03 09:25:22 +02:00
Emili Castells Guasch
e0ca70f7b6
Add liability shift check
2025-04-02 18:07:22 +02:00
Emili Castells Guasch
e4252ebbf7
Add service for checking if order is valid for capture
2025-04-02 15:51:17 +02:00
Emili Castells Guasch
5b9796832b
Fix phpunit
2025-03-26 11:31:38 +01:00
Philipp Stracker
383d907866
🔀 Merge branch 'trunk'
2025-03-24 17:45:03 +01:00
Daniel Dudzic
a0a7d042b4
Fix first batch of typos
2025-03-24 14:09:19 +01:00
Emili Castells
3b48f8a70d
Merge pull request #3242 from woocommerce/PCP-4385-failed-to-fetch-onboarding-url-error-when-onboarding-with-no-rt-merchant-and-selecting-subscriptions-product
...
Do not add the capabilities if is not eligible for ACDC (4385)
2025-03-24 09:31:30 +01:00
Philipp Stracker
ed3c6799d0
♻️ Update tests to use the new Enum
2025-03-21 18:16:41 +01:00
Narek Zakarian
af44af2818
Use the constant in tests
2025-03-21 19:15:21 +04:00
Narek Zakarian
55c19d6173
🚨 Fix the test
2025-03-21 18:03:58 +04:00
Narek Zakarian
9eda2ccc35
Add the tests
2025-03-21 18:03:58 +04:00
Emili Castells
289459212b
Merge pull request #3244 from woocommerce/PCP-4390-php-create-branded-experience-detection
...
PHP: Create branded-experience detection (4390)
2025-03-21 14:44:36 +01:00
Emili Castells
e0357ca59e
Merge pull request #3098 from woocommerce/PCP-4116-order-does-not-contain-intent-3-ds-acdc-renewal
...
Order does not contain intent. (3DS ACDC renewal) (4116)
2025-03-21 14:35:55 +01:00
Emili Castells Guasch
eeea68cb57
Remove settings purge in test
2025-03-21 12:17:25 +01:00
Emili Castells Guasch
ad6ff3b471
Extract installation path persistence to service
2025-03-21 12:10:45 +01:00
Emili Castells Guasch
620fc05e5d
Merge branch 'trunk' into PCP-4390-php-create-branded-experience-detection
2025-03-20 16:47:01 +01:00
Emili Castells Guasch
1e35965761
Merge branch 'trunk' into PCP-4390-php-create-branded-experience-detection
2025-03-20 12:50:38 +01:00
Emili Castells Guasch
6149dbd527
Merge branch 'trunk' into fix/integration-tests-setup
2025-03-20 11:36:24 +01:00
Emili Castells Guasch
e544ce1355
Add persistence for branded experience installation path
2025-03-19 15:55:57 +01:00
Narek Zakarian
299cc0f85f
Fix the tests
2025-03-19 18:36:11 +04:00
Emili Castells Guasch
ea14270e24
Add activation detector service
2025-03-19 14:52:47 +01:00
Philipp Stracker
f9212b1713
🧪 Fix unit tests with missing assertion
2025-03-18 17:03:59 +01:00
Emili Castells Guasch
73d3e3c642
Remove test
2025-03-17 17:44:09 +01:00
Emili Castells Guasch
60fad34e7a
Add group to skip tests in ci
2025-03-17 17:27:24 +01:00
Philipp Stracker
afb7044b03
🚚 Rename configuration class
...
The class name does not reflect the purpose of the class
2025-03-14 16:15:31 +01:00
Philipp Stracker
a7f736c52c
🧪 Update existing unit test cases
2025-03-14 11:59:52 +01:00
Emili Castells Guasch
129eec6baa
Rename e2e to integration
2025-03-12 18:14:01 +01:00
Emili Castells Guasch
280dc71871
Fix settings test
2025-03-12 17:57:52 +01:00
Emili Castells Guasch
869670a6c0
Use wc and woosubscriptions apis to create the subscription
2025-03-12 17:46:20 +01:00
Narek Zakarian
159dfeb5cb
Fix tests
2025-03-11 19:44:50 +04:00