budzanowski
2d8f308a08
Remove redundant check.
2020-07-21 18:41:34 +02:00
Peter Fabian
544a7322eb
Merge pull request #27080 from woocommerce/update/woocommerce-admin/1.3.1
...
[4.3.1] Update WooCommerce Admin Package.
2020-07-21 12:08:10 +02:00
Timmy Crawford
000e695a34
[4.3.1] Update WooCommerce Admin Package.
2020-07-20 16:57:57 -07:00
Christopher Allford
840554d788
Merge pull request #27017 from woocommerce/fix/25480
...
Fixed the `shipping_zone_method` CLI command's instance_id parameter
2020-07-20 11:00:08 -07: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
budzanowski
0a10d64394
Update code to the new server setup.
2020-07-20 17:16:18 +02:00
Mahdi Yazdani
c3c15a4f2a
Removed dot "." from the generated password string
...
There is an extra dot "." right after the generated password string which is not part of the actual password and creates confusion for the users who want to login. It would be great if we can remove it.
2020-07-19 13:45:46 +03:00
Ron Rennick
d3ab19b7cf
eliminate internal use of deprecated functions
...
- remove deprecation of offsetGet as it is used throught abstract order
- eliminate use of offsetGet in unit tests, structured data, order functions
-
2020-07-17 17:14:26 -03:00
Julia Amosova
10bfb679eb
Scroll home screen tasks list into view for the click to work
2020-07-17 12:44:46 -04:00
Brian
601c7263b8
hide state for liechtenstein
...
hide the state field for liechtenstein
2020-07-17 10:26:48 +02:00
Brian
eefd29e40a
add empty states array for liechtenstein
...
add empty states array for country liechtenstein
2020-07-17 10:22:44 +02:00
Christopher Allford
b21c3fb55a
Updated minified files
2020-07-16 21:44:49 -07:00
Ron Rennick
5ee0eccb7b
add/update correct deprecated notices on existing deprecations
2020-07-16 17:13:08 -03:00
Claudio Sanches
86311a9903
Merge pull request #27046 from woocommerce/fix/26860
...
[Importer/Exporter] Fixed the value display of "Published" for children of draft variable products
2020-07-16 13:15:31 -03:00
Ron Rennick
dbf3e99292
Merge pull request #26964 from woocommerce/fix/24604
...
add rating count to order by rating clause
2020-07-16 10:51:20 -03:00
Néstor Soriano
24bd19c517
Merge pull request #27038 from woocommerce/add/26192
...
Add existing meta keys to woocommerce_duplicate_product_exclude_meta filter
2020-07-16 11:02:09 +02:00
Claudio Sanches
156b061602
Added unit tests for importer and exporter
2020-07-15 21:49:26 -03:00
Claudio Sanches
37777432d4
[Importer/Exporter] Fix "Published" column values
...
While variations only uses "published" and "private" statuses when
exporting we should display the variations as "draft" in case the parent
product it's also a draft.
2020-07-15 21:45:51 -03:00
Christopher Allford
b71ddd35f1
Added sniffs to enforce PSR-4 in the `src` and `tests/php/src` directories
2020-07-15 16:09: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
13536bef5b
Corrected the WCInstallTest filename
...
It is in the `includes` test section and should have the same filename as the corresponding class.
2020-07-15 14:20:26 -07:00
Vedanshu Jain
a34835e489
Merge pull request #26932 from woocommerce/fix/25442
...
Show community forum link if wccom is not connected
2020-07-16 00:14:52 +05:30
Christopher Allford
fdee8dceaf
Moved test to correct directory
2020-07-15 07:08:09 -07:00
vedanshujain
aabf4bfe37
Add unit tests.
2020-07-15 15:27:34 +05:30
vedanshujain
4500e86198
Shorten class and method names to reduce redundancy in naming.
2020-07-15 15:20:18 +05:30
Christopher Allford
c9f754f5a3
Added the existing meta keys to the `woocommerce_duplicate_product_exclude_meta` filter
2020-07-14 13:57:21 -07:00
vedanshujain
af401a7d80
Add unit test
2020-07-14 23:32:12 +05:30
vedanshujain
1e68ce5dc9
Move function to src for better code architecture
2020-07-14 23:31:56 +05:30
Claudio Sanches
e340a20312
Merge pull request #26880 from wpdesk/bugfix/settings-changes-warning
...
Changed settings warning when leaving page
2020-07-14 13:40:05 -03:00
Claudio Sanches
6291315429
Merge pull request #27028 from woocommerce/fix/master-branch-protection-update
...
Removed wildcards from branch name match.
2020-07-14 13:37:39 -03:00
Christopher Allford
9c492853b5
Merge pull request #26998 from woocommerce/fix/is-tax-displayed-private
...
Fixed the accessibility of WC_Cart::is_tax_displayed()
2020-07-14 09:05:19 -07:00
Nestor Soriano
d2787818e3
Rename `quick-edit-warning` style with `wc-` prefix, and add styling.
2020-07-14 16:02:59 +02:00
Peter Fabian
ac1d4c010a
Merge pull request #26914 from woocommerce/renovate/lerna-monorepo
...
Update dependency lerna to v3.22.1
2020-07-14 13:05:47 +02:00
Peter Fabian
d3ff32aac1
Merge pull request #26912 from woocommerce/renovate/deasync-0.x
...
Update dependency deasync to v0.1.20
2020-07-14 13:04:20 +02:00
Peter Fabian
84266d5f38
Merge pull request #26910 from woocommerce/renovate/babel-monorepo
...
Update babel monorepo to v7.10.4
2020-07-14 13:02:59 +02:00
Peter Fabian
74c320575d
Add message to GUI clients.
2020-07-14 12:53:22 +02:00
Peter Fabian
8c25557bf5
Fixed the test to actually catch master.
2020-07-14 12:51:50 +02:00
Nestor Soriano
c53d6daed1
Fix error when `screen` not set in request, remove redundand `round`s.
2020-07-14 11:42:22 +02:00
Nestor Soriano
a33bcaf532
Remove unnecessary phpcs disabler in quick-edit.js
2020-07-14 11:42:22 +02:00
Nestor Soriano
a39e15f92b
Small adjustments in WC_Admin_Post_Types
...
- Remove no longer needed phpcs disablers.
- Rename method.
- Remove no longer needed logic.
- Simplify some logic.
2020-07-14 11:42:21 +02:00
Nestor Soriano
fc0be07e0f
Add unit test for WC_Admin_Post_Types::bulk_and_quick_edit_save_post.
...
The test added checks that the new regular or sale price is
appropriately set when bulk saving.
2020-07-14 11:42:21 +02:00
Nestor Soriano
320fa38c51
Improve WC_Helper_Product::create_simple_product.
...
Add a new optional $props parameter containing the properties
to be set in the newly created product.
2020-07-14 11:42:21 +02:00
Nestor Soriano
4531af3382
Small fix in WC_Tests_Admin_Post_Types::bulk_and_quick_edit_stock_status_for_variable_product.
...
At some point the 'change_stock' key is assumed to be present
in the request data, but it might not. Fixed to test for existence
before using the value.
2020-07-14 11:42:21 +02:00
Nestor Soriano
e05aa8a03a
Add unit test for WC_Admin_Post_Types::bulk_and_quick_edit_save_post.
...
The test added checks that stock status of variations when saving
a variable product is changed or not appropriately depending on
the request data supplied.
2020-07-14 11:42:21 +02:00
Nestor Soriano
a3ee904081
Add login_as_role and login_as_administrator to WC_Unit_Test_Case.
...
Those methods are a convenient replacement for
"this->factory->user->create". Tests that were using that to
simulate user login have been modified to use the new methods.
2020-07-14 11:42:21 +02:00
Nestor Soriano
9c2a43bfd5
Fix code sniffer errors in a few unit test files.
2020-07-14 11:42:21 +02:00
Nestor Soriano
b71a9c33b6
Extract $_REQUEST to a method in WC_Admin_Post_Types.
...
Create a new `request_data` method in WC_Admin_Post_Types that
just returns $_REQUEST. This is intended to ease unit testing,
as this method can be easily mocked to return test data.
2020-07-14 11:42:21 +02:00
Nestor Soriano
fd34cf76b2
Fix stock status setting for variable products on bulk & quick edits.
...
For bulk edit: even if stock status was left as "No change", the
status of all variations was being changed to whatever the status
of the product was before it was converted to variable. Now
no change is performed when "No change" is selected, and all
variations change to whatever is selected otherwise.
For quick edit: a new "No change" option is added that will be
preselected when the product is variable. Previously, whatever
status the product had before being converted to variable was being
shown, and that's the status that would be set when saving.
Also, a "This will change the stock status of all variations"
message is displayed before the selector.
2020-07-14 11:42:21 +02:00
Nestor Soriano
39e5a1bfb1
Fix code sniffer errors on quick-edit.js
2020-07-14 11:42:21 +02:00