Vedanshu Jain
cb12010627
Merge pull request #24295 from woocommerce/fix/24096
...
Remove %20 from fields in External Products form
2019-10-03 00:15:52 +05:30
Claudio Sanches
8758fbdbdc
Fixed unit tests for wc_query_string_form_fields()
2019-10-02 11:23:31 -03:00
Peter Fabian
7ea9fdec62
Added unit test for special case of attribute value 0.
2019-10-02 15:06:22 +02:00
Peter Fabian
e45fe949c1
Added unit test & updated other affected tests.
2019-10-02 14:59:42 +02:00
vedanshujain
6f2d64dcb4
Check for max discount to be -ve to prevent overwriting fee.
...
When we refund fee and some other line item whose value is more than fee in a single requst, value of line item will overwrite refund fee.
This is because where we check to make sure that we do not discount more than total possible value (to prevent negative total), we do not account for the fact that sometimes the cart could contain refund items. In those cases max_discount * -1 will always be larges then fees total.
This commit adds a check to make sure that max discount * -1 is indeed negative before overwriting fee total.
2019-09-03 20:45:33 +05:30
Rodrigo Primo
132d785c65
Merge pull request #24242 from woocommerce/update-contributing-docs
...
Update WooCommerce developer documentation
2019-08-23 10:54:37 -03:00
Rodrigo Primo
18c83e7e4d
Remove word "simply" from documentation
...
It can have a negative implication for the reader if they don't know how to do it
2019-08-23 10:46:22 -03:00
Claudio Sanches
1b2b9d528a
Fixed Netherlands postcode formatting ( #24284 )
...
* Fixed Netherlands postcode formatting
Trim all spaces, fixes issues when postcode is empty.
* Always trim spaces
* Updated unit test for test_wc_format_postcode()
2019-08-09 15:00:40 -03:00
Gerhard
9c7e1d43b0
Update unit tests for wc_string_to_bool to test for camel case as well as uppercase values.
2019-08-06 14:12:42 +02:00
Gerhard
862c43c553
xvfb needs to be started in before_script
2019-08-05 14:43:54 +02:00
Claudio Sanches
162c5dd8a2
Updated tests for wc_query_string_form_fields()
2019-08-01 17:30:39 -03:00
Rodrigo Primo
833c5016ea
Add unit tests for wc_get_endpoint_url()
2019-08-01 17:23:11 -03:00
Rodrigo Primo
9752c1f8a0
Update tests documentation
...
Update tests documentation as PHPUnit now should be installed and called using composer instead of
globally. This commit also includes some other minor changes to the
tests documentation like updating the link of the service used for code
coverage reports.
2019-07-26 14:48:05 -03:00
Rodrigo Primo
a8f6a94cda
Remove methods assertIsWPError() and assertNotWPError() from WC_Unit_Test_Case
...
Those two methods are already declared in the class WP_UnitTestCase, so there is
no need to declare them again in the class WC_Unit_Test_Case. The only
caveat is that assertIsWPError() is called assertWPError() in
WP_UnitTestCase so it was necessary to update all of its usages.
2019-07-19 10:56:58 -03:00
Rodrigo Primo
16442956e8
Fix PHPCS errors
2019-07-19 10:19:23 -03:00
Claudio Sanches
5eb11ea77a
Remove exception for PHP 5.2
2019-07-18 23:02:30 -03:00
Claudio Sanches
80f1e2fba2
Remove all support for PHP 5.2 in Travis
2019-07-18 23:01:14 -03:00
Claudio Sanches
16041d9247
Fixed failing tests
2019-07-18 22:42:31 -03:00
Claudio Sanches
96c7255fc0
Fixed SpeedTrapListener include
2019-07-18 22:24:40 -03:00
Claudio Sanches
67212d1303
Updated PHPUnit to 7.5.14
2019-07-18 22:02:58 -03:00
Peter Fabian
cb9d94ed9b
Merge pull request #24147 from woocommerce/revert-23705-fix/23696
...
Revert "Prevent negative prices on products"
2019-07-15 11:28:25 +02:00
Gerhard Potgieter
238a5576d0
Merge pull request #24139 from woocommerce/fix/failing-e2e-timeouts
...
Be sure to run grunt in travis
2019-07-15 09:07:36 +02:00
Gerhard Potgieter
52f1eb4060
Revert "Prevent negative prices on products"
2019-07-15 08:50:11 +02:00
Gerhard
e5ae8f10ae
Update e2e test for variations to accomodate new missing price message on variations.
2019-07-14 17:47:30 +02:00
Gerhard
0e50e2319c
Cleaning up
2019-07-14 17:16:31 +02:00
Gerhard
712969981c
Remove extra folder
2019-07-14 17:04:59 +02:00
Gerhard
689d66dae3
npm install, debugging info
2019-07-14 17:01:38 +02:00
Gerhard
d3cc901612
Params needs to be first
2019-07-14 16:56:07 +02:00
Gerhard
abee4e68c2
Use TRAVIS_BUILD_DIR constant
2019-07-14 16:17:57 +02:00
Gerhard
a04f182edb
Do not install branch from zip, rather used checked out copy instead.
2019-07-14 16:12:16 +02:00
Gerhard
ba1b684f33
Plugin folder auto renamed to woocommerce
2019-07-14 15:57:11 +02:00
Claudio Sanches
77191a97f8
Merge pull request #23705 from woocommerce/fix/23696
...
Prevent negative prices on products
2019-07-12 12:56:34 -03:00
Claudio Sanches
60c18ce544
Merge pull request #23067 from woocommerce/pr/23043
...
Allow matching of "any" attributes in find_matching_product_variation…
2019-07-12 12:40:53 -03:00
Gerhard
ebe9648fed
Branch is manually installed, must go to branch directory and compile from there.
2019-07-12 17:06:45 +02:00
Gerhard
bd06f94d01
Introduce grunt e2e-build task and exclude jshint from that.
2019-07-12 16:28:31 +02:00
Gerhard
7ab046bee4
Move grunt call to run-e2e-ci.sh
2019-07-12 16:14:11 +02:00
Gerhard
b1514ca9a0
Run grunt in travis before_script
2019-07-12 16:09:55 +02:00
Gerhard
aad5b2863a
Add more tests to test more expected combinations as well as test the negatives.
2019-07-12 15:10:20 +02:00
Claudio Sanches
c63cd802aa
Merge pull request #23957 from woocommerce/feature/feature-plugin-packages
...
Include external feature plugins as packages
2019-07-10 15:47:48 -03:00
Gerhard Potgieter
49adf8169b
Merge pull request #23672 from woocommerce/fix/23366-2
...
Auto generate usernames when a username is blacklisted by WP
2019-07-10 15:44:44 +02:00
Mike Jolley
c928188831
Update from master
2019-07-10 12:57:02 +01:00
Gerhard
98c24b1090
Merge branch 'master' into pr/23043
2019-07-10 10:34:52 +02:00
Gerhard
5122641be0
Add wc update cli call to the e2e test install. This should fix outdated/missing tables and routines.
2019-07-10 09:20:37 +02:00
Gerhard
22bb52f9be
Fix failing unit tests due to changes in #24111
2019-07-10 08:48:33 +02:00
Claudio Sanches
6e6ca196f9
Merge branch 'master' into fix/23340
2019-07-09 16:32:43 -03:00
Rodrigo Primo
34e5018137
Merge pull request #23262 from woocommerce/fix/23257
...
CSV Import - check if sku or id column exists when updating products from csv
2019-07-09 14:25:03 -03:00
Claudio Sanches
2fa5396cfc
Fixed coding standards
2019-07-09 12:43:03 -03:00
Claudio Sanches
32996d2fdd
Merge branch 'master' into pr/23043
2019-07-09 12:39:40 -03:00
Gerhard Potgieter
a7b6d7bfa4
Merge pull request #24024 from woocommerce/fix/23917/code
...
Round late when rounding at subtotal to reduce rounding error.
2019-07-09 11:05:40 +02:00
Gerhard
7038c73ab4
Merge branch 'master' into update/exclude-compiled-assets-from-git
2019-07-09 10:57:40 +02:00