Vedanshu Jain
9b8a5a7308
Validate orders separately since it not always a CPT. ( #36832 )
2023-03-10 15:20:39 +05:30
Vedanshu Jain
5d07d29366
Fix HPOS unit tests for WC Order unit test classes ( #37130 )
2023-03-08 23:12:48 +05:30
Vedanshu Jain
9b8a9eb0aa
Fix unit tests for order and customer functions to provide HPOS compat. ( #36905 )
2023-03-08 15:51:06 +05:30
Vedanshu Jain
37ed0e5f4f
Skip unsupported tests with HPOS. ( #36908 )
2023-03-06 22:03:11 +05:30
Vedanshu Jain
5dffc39b12
Fix API unit test for HPOS compat ( #36910 )
2023-03-06 21:29:50 +05:30
Vedanshu Jain
77f7cf9879
Update PayPal tests for HPOS compat. ( #36909 )
2023-03-06 17:23:22 +05:30
Vedanshu Jain
282263bfde
Fix test in Admin reports for HPOS compat ( #36946 )
2023-03-06 17:22:24 +05:30
Vedanshu Jain
fb356b686e
Use simplified name for readibility.
2023-03-06 17:21:23 +05:30
Vedanshu Jain
185b8ae252
Use common method to mark HPOS tests as skipped.
2023-03-01 17:43:36 +05:30
Vedanshu Jain
abdcc861b3
Add HPOS compat to meta and CRUD unit tests. ( #36907 )
2023-03-01 16:23:21 +05:30
Vedanshu Jain
4c75a36003
Applied coding standards.
2023-02-27 20:06:51 +05:30
Vedanshu Jain
f12be6e673
Applied coding standards.
2023-02-27 19:35:36 +05:30
Vedanshu Jain
33d41206fc
Add changelog.
2023-02-27 19:18:23 +05:30
Vedanshu Jain
4b5d13b8ec
Merge branch 'fix/36679' into fix/36678
2023-02-27 19:17:28 +05:30
Vedanshu Jain
1e700b90af
Add changelog.
2023-02-27 19:11:37 +05:30
Vedanshu Jain
2b1b4fcfec
Merge branch 'fix/36680' into fix/36679
2023-02-27 18:57:26 +05:30
Vedanshu Jain
4f4d42b9ef
Add changelog.
2023-02-27 18:47:54 +05:30
Vedanshu Jain
a9280ff5d8
Merge branch 'fix/36681' into fix/36680
2023-02-27 18:46:59 +05:30
Vedanshu Jain
5c1d1d78d2
Add changelog.
2023-02-27 18:25:01 +05:30
Vedanshu Jain
9e23ee2675
Merge branch 'fix/36682' into fix/36681
2023-02-27 18:21:14 +05:30
Vedanshu Jain
1736911bfa
Applied coding standards.
2023-02-27 17:42:47 +05:30
Vedanshu Jain
f5ac18f11c
Add changelog.
2023-02-27 17:27:32 +05:30
Vedanshu Jain
ca14a921db
Merge branch 'fix/36684' into fix/36682
2023-02-27 17:24:53 +05:30
Vedanshu Jain
04642b8bd4
Apply coding standards
2023-02-27 17:22:44 +05:30
Vedanshu Jain
648d801da2
Added changelog.
2023-02-27 17:08:38 +05:30
Vedanshu Jain
ef74ccd496
Use posts before delete hook along with HPOS one.
2023-02-27 17:07:59 +05:30
Vedanshu Jain
8369487847
Apply coding standards.
2023-02-27 16:43:25 +05:30
Vedanshu Jain
b286c50ebd
Merge branch 'fix/36685' into fix/36684
2023-02-27 16:29:26 +05:30
Vedanshu Jain
46f6eb3d5f
Removed typo.
2023-02-27 14:56:43 +05:30
Vedanshu Jain
01114fc5d9
Toggle COT appropriately for COT tests.
2023-02-27 14:50:14 +05:30
Vedanshu Jain
8da07f73e7
Fetch order first to refresh cache before returning prop.
2023-02-27 13:48:59 +05:30
Vedanshu Jain
cf46233b35
Merge branch 'fix/36686' into fix/36685
2023-02-27 13:20:57 +05:30
Vedanshu Jain
212884e417
Merge branch 'hpos/unit-tests' into fix/36686
2023-02-27 12:50:25 +05:30
Vedanshu Jain
7f140c77ca
Use latest WP version.
2023-02-24 17:02:36 +05:30
Vedanshu Jain
86e5f13180
Modify name to reflet HPOS tests + use latest WP..
2023-02-24 17:02:05 +05:30
Vedanshu Jain
5c2ccb563b
Run HPOS test in a matrix along with post tests.
2023-02-24 16:57:51 +05:30
Vedanshu Jain
87da68c377
Use correct data store for getter/setters.
2023-02-24 15:03:54 +05:30
Vedanshu Jain
a3a41356ee
Sanitize value before returning.
2023-02-24 15:03:48 +05:30
Vedanshu Jain
f8b6258c92
Set correct datastore for tests.
2023-02-24 15:03:41 +05:30
Vedanshu Jain
5e7052b03d
Use correct data store for getter/setters.
2023-02-24 15:02:01 +05:30
Vedanshu Jain
7fbd736517
Sanitize value before returning.
2023-02-24 15:01:38 +05:30
Vedanshu Jain
2d3f38851c
Set correct datastore for tests.
2023-02-24 14:37:35 +05:30
Vedanshu Jain
2362d7785a
Add HPOS support to admin orders API.
2023-02-24 14:04:35 +05:30
Vedanshu Jain
a3c646fe55
Apply coding standards.
2023-02-24 13:18:52 +05:30
Vedanshu Jain
f20d619c30
Skip legacy tests.
2023-02-24 13:11:28 +05:30
Vedanshu Jain
d54e141aaf
Use CRUD instead of direct post access for HPOS compat.
2023-02-24 13:06:04 +05:30
Vedanshu Jain
5c6392dc7c
Use closure instead of returning DB object to prevent interference in other tests.
...
PHPUnit will evaluate all data providers before starting anyh test (to count the number of tests to be executed). Which means that any data provider inserting data into DB is going to interfere with other tests. Using closure instead helps PHP in counting the data, yet not having to actual DB calls.
2023-02-24 13:04:01 +05:30
Vedanshu Jain
f3cb5424d7
Move generic method to parent class for reusability.
2023-02-22 19:42:47 +05:30
Vedanshu Jain
6d162a9950
Undo regression in previous commit.
2023-02-22 19:13:06 +05:30
Vedanshu Jain
0b689ed8bd
Modify test to support HPOS.
2023-02-22 19:12:53 +05:30