Claudiu Lodromanean
bc59be04fa
Merge pull request #20009 from woocommerce/update/wc-orders-query-tests
...
Add test to check WC_Order_Query when using the 'customer' parameter
2018-05-08 13:57:54 -07:00
Rodrigo Primo
42e801db0c
Add test to check WC_Order_Query when using the 'customer' parameter
2018-05-08 17:24:16 -03:00
Rodrigo Primo
3e8cd3f837
Remove unnecessary tests cleanup code
...
Tests don't need to manually remove data that they create. WP test framework does that automatically after each test is executed.
2018-05-08 16:00:00 -03:00
Rodrigo Primo
47f6104580
Add more unit tests to improve test coverage of functions in includes/wc-stock-functions.php
2018-05-08 15:58:03 -03:00
Rodrigo Primo
41f5985087
Fix PHPCS violations automatically using phpcbf
2018-05-08 15:48:55 -03:00
Rodrigo Primo
b43f828a7b
Fix PHPCS violations automatically using phpcbf
2018-05-08 11:55:32 -03:00
Rodrigo Primo
5d9dadca87
Remove unnecessary cleanup code from orders unit tests
...
It is not necessary to manually remove data added to the database after each test. WP unit tests framework does this automatically.
2018-05-08 11:52:58 -03:00
Claudiu Lodromanean
bda8732c6f
Merge pull request #19974 from woocommerce/update/payment-method-columns
...
Updates table styling and columns
2018-05-07 11:23:49 -07:00
Mike Jolley
cf9fa5b3ff
Updates table styling and columns
2018-05-04 18:48:41 +01:00
Rodrigo Primo
7d5f6d3746
Remove WC API unit tests cleanup code
...
WC unit tests don't need to remove data from the database before finishing. `WP_UnitTestCase` creates a transaction before each test starts and roll it back after it ends, so data is never actually written to the database. This simplifies the tests and makes them faster.
2018-05-04 11:45:30 -03:00
Rodrigo Primo
7ce69dfca2
PHPCS fixes
2018-05-04 11:42:45 -03:00
Mike Jolley
e807c6151f
Merge branch 'master' into update/erasure-requests
2018-05-02 14:06:47 +01:00
claudiulodro
9c1179856d
Update unit tests
2018-05-01 09:32:29 -07:00
Mike Jolley
7ae9919a19
Fix tests
2018-05-01 16:53:05 +01:00
Mike Jolley
d40b704cba
Remove deprecation test
2018-05-01 13:39:32 +01:00
Mike Jolley
adf1c92666
Sets the option before running test so it passes :) Broken in #19871
2018-04-27 10:01:02 +01:00
Peter Fabian
76d9cc7b19
Fix the US currency name and attribute check for creating variable product.
2018-04-25 10:00:10 +02:00
Rodrigo Primo
dcc309d16b
Add call to parent::setUp() and remove cleanup code
...
parent::setUp() should be called inside test setup methods to make sure database changes are automatically reverted after each test is executed. This way it is not necessary to manually remove inserted data.
2018-04-23 10:34:15 -03:00
Rodrigo Primo
4a8f34f2ee
Test setup methods should call parent setup method
...
This commits adds a call to `parent::setUp()` inside WC_Tests_Product_CSV_Importer::setUp(). This is necessary to make sure transactions are used on database calls and thus tests don't have to worry about cleaning inserted data.
I found this issue while debugging https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/81 . Turns out this test was failing because WC_Tests_Product_CSV_Importer::test_import() was leaving one post in the database due to a bug in the custom product tables plugin.
2018-04-23 10:34:03 -03:00
Rodrigo Primo
c7c82a2335
PHPCS fixes
2018-04-23 10:33:52 -03:00
Mike Jolley
d381330a91
Merge pull request #19705 from woocommerce/fix/19619
...
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
Peter Fabian
4538f3fa8f
Moved wc_selected to core functions.
2018-04-18 15:54:57 +02:00
Gerhard Potgieter
f0f6169145
Fix the download log unit test, with the new constraint key introduced in #19330 the download log needs a valid download to save correctly.
2018-04-18 09:43:24 +02:00
claudiulodro
f9e45bea91
Bring up-to-date with master and resolve merge conflicts
2018-04-17 13:27:39 -07:00
Claudio Sanches
933bcc32c3
Merge branch 'master' into fix/19620
2018-04-17 12:45:20 -03:00
Claudio Sanches
f18220a009
Updated unit tests
2018-04-17 12:31:14 -03:00
Peter Fabian
49529e0912
Added wc_selected function.
...
- Added unit test for the wc_selected function.
2018-04-17 12:13:46 +02:00
Mike Jolley
e951ff0a00
Fix test
2018-04-16 14:35:20 +01:00
Mike Jolley
f3388d8cd6
tests
2018-04-13 18:25:51 +01:00
Mike Jolley
1b34cd4745
Moved settings tabs around to allow for privacy page.
2018-04-12 16:59:42 +01:00
Claudio Sanches
900c8fc33f
Merge pull request #19380 from woocommerce/update/19302
...
Override supports for PayPal to see if credentials exist
2018-04-06 15:44:42 -03:00
Claudio Sanches
53b000cb87
Remove product after unit test
2018-04-06 14:49:20 -03:00
Claudio Sanches
a10689ce40
Added unit tests for wc_get_product_class()
2018-04-06 14:47:18 -03:00
Mike Jolley
4e42b2cd30
Handle manage_stock mixed content for variations
2018-04-03 17:46:43 +01:00
Mike Jolley
5ac7aac369
Improve can_refund_order and add unit tests
2018-04-03 17:09:09 +01:00
Mike Jolley
5bc26ebd79
Merge branch 'master' into update/17427
2018-04-03 14:38:49 +01:00
Mike Jolley
8721d62b67
update test
2018-04-03 14:37:31 +01:00
Mike Jolley
51252915e1
Merge pull request #19493 from woocommerce/fix/19404
...
Removed line item limit and made sure the URL is shorter than 2083 ch…
2018-03-28 13:56:57 +01:00
Peter Fabian
3809ab3f4c
Fixed shipping tax logic to behave the same as originally
2018-03-28 13:08:05 +02:00
Mike Jolley
5547c57c03
Merge pull request #19504 from woocommerce/fix/19485-backorder-import
...
Product import backorders default to no
2018-03-28 11:00:09 +01:00
Gerhard Potgieter
80ec10fc21
Fix unit test for import, the way the test is set up it expects a no for backorders and not an empty string
2018-03-28 08:28:13 +02:00
Peter Fabian
5eda49f98a
Line item logic refactored
...
Renamed function get_non_line_item_args
Documentation updates
...all part of code review fixes
2018-03-27 15:55:03 +02:00
Peter Fabian
f6d748a812
Fixed PHPCS violation
2018-03-26 13:31:29 +02:00
Peter Fabian
88588eccbc
Code duplication removed
...
Added test for non line item agrument presence
Fixed incorrect comment
2018-03-26 13:05:55 +02:00
Peter Fabian
26144afbc6
Test request length after applying filter
...
- added default value to get_line_item_args to not break interface
- smaller code review updates
2018-03-23 17:22:09 +01:00
Peter Fabian
fda6421dee
Fixed compatibility with older PHP versions, removed superfluous asserts.
2018-03-22 20:42:19 +01:00
Peter Fabian
27a309d2df
Removed line item limit and make sure the URL is shorter than 2083 characters
...
- removed limit to 9 line items per Paypal order
- if the request URL with all line items will be longer than 2083 characters, send it as one line item
- fix the character limit function to account for URL encoding happening in http_build_query
2018-03-22 15:39:30 +01:00
Claudio Sanches
21dc6d28cf
Merge branch 'master' into feature/18477
2018-03-21 14:31:58 -03:00
Mike Jolley
6539b7913e
Merge branch 'master'
2018-03-19 18:05:36 +00:00
Claudiu Lodromanean
e6a266e30f
Merge pull request #19412 from woocommerce/update/19408
...
Use wc_get_default_products_per_row as the default for product shortcodes
2018-03-19 09:23:44 -07:00