roykho
8c3e90b3ce
Initialize _restock_refunded_items meta on order update
2021-05-11 08:35:48 -07:00
roykho
2e3156d436
Use proper skip test method instead of return
2021-05-03 06:33:09 -07:00
roykho
87047c77df
Limit the new refund restock logic to order version 5.4+
2021-04-29 06:30:53 -07:00
roykho
b69f46d7d2
Add unit tests
2021-04-27 09:29:24 -07:00
Nestor Soriano
ccb8cbddac
Adjust tests for WC_Admin_Dashboard_Setup (consider 'payments' task)
2021-03-29 17:39:58 +02:00
Moon
5c99233905
Minor fixes
...
* Removed extra double quotation from the image tag
* Fixed typo in the init() method
* Moved init() method body into the constructor -- a separate method is not necessary
2021-02-22 20:33:02 -08:00
Moon
781c5e24d7
Status dashboard widget should be rendered only if onboarding tasks have been completed or hidden
2021-02-22 15:29:47 -08:00
Moon
bc3219e22e
Add tests for the finish setup dashboard widget and clean up code
2021-02-17 16:07:50 -08:00
roykho
4ec270b93d
Add unit tests for the fix
2020-11-11 15:28:06 -06:00
vedanshujain
d51dd26816
Add unit tests.
2020-09-25 19:41:20 +05:30
Claudio Sanches
3c1132e274
Added unit tests for wc_get_current_admin_url()
2020-07-29 21:02:52 -03:00
Christopher Allford
636327c110
Merge pull request #27043 from woocommerce/fix/unit-test-suite
...
Test Suite & Namespace PHPCS Changes
2020-07-20 08:40:00 -07:00
Christopher Allford
f72b8db576
Added some exceptions to the PHPCS standards for unit tests
...
The file comments and @throws tags are unnecessary in unit tests.
2020-07-15 14:29:13 -07:00
Christopher Allford
55385f6cec
Moved the orphaned unit test into the correct directory
2020-07-15 14:21:34 -07:00
Christopher Allford
fdee8dceaf
Moved test to correct directory
2020-07-15 07:08:09 -07:00
Christopher Allford
7bf9c31f64
Adjusted the column name normalization to avoid squashing meta key case sensitivity
...
Since we were converting the field to lowercase we ended up inserting meta in all lowercase, regardless of what it was in the CSV file. We should only be using the normalized field name when looking at the default columns, and should instead rely on a case-insensitive regex for the special columns.
One thing to note is that we're still defaulting the $headers array to the normalized field, as we don't want to change what is being passed to the filter for unmapped columns.
2020-05-14 21:20:55 -07:00
Christopher Allford
63ba6f7ee0
Moved the PSR-4 namespaced test directory to the correct folder
...
I know this probably doesn't belong in this PR, but it has been thoroughly discussed and I don't think anyone will mind :)
2020-05-14 21:20:47 -07:00
vedanshujain
27ad4a552e
Rename file and class to resemble PSR4 like convention for consistency.
2020-05-05 19:19:37 +05:30
vedanshujain
f4e169f21e
Moved test specific logic from bootstrap to test file
2020-05-02 00:31:54 +05:30
vedanshujain
13dfb8180f
Add unit test and a sample Woo plugin file
2020-05-01 22:47:08 +05:30