Peter Fabian
e8956953ba
Updated test.
2018-08-09 12:22:26 +02:00
Claudiu Lodromanean
9e3da78c73
Merge pull request #20853 from woocommerce/reduce-test-suite-execution-time
...
Reduce WC_Tests_REST_System_Status tests execution time
2018-07-24 10:46:26 -07:00
Rodrigo Primo
f47c9e7842
Reduce WC_Tests_REST_System_Status tests execution time
...
This commit changes WC_Tests_REST_System_Status tests to use artificial HTTP responses instead of performing external HTTP requests. With this change execution time for these tests droped from 22s to 3s.
2018-07-19 14:22:29 -03:00
Peter Fabian
7443a2f906
Switched variation creation to CRUD methods for unit test.
2018-07-09 18:27:56 +02:00
Peter Fabian
3af9c1e95b
Merge branch 'master' into fix/20349
...
# Conflicts:
# tests/framework/helpers/class-wc-helper-product.php
# tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian
4a42e2a7fc
Added unit tests for query params for variations REST API endpoint.
2018-07-09 17:12:23 +02:00
Peter Fabian
55d7ea4ac5
Improved unit tests for products REST API endpoint.
2018-07-09 17:11:50 +02:00
Peter Fabian
6c70064a82
Added test products API for product tag and attributes query parameters.
2018-07-06 16:57:40 +02:00
Peter Fabian
fe77b9e54f
Fixed the variation product helper in unit tests.
...
Previously, the variable product had 2 variations, but one of them had a term assigned ('large') that wasn't assigned to the parent product. Normally, when variable product is created, parent has all the terms assigned to its children assigned.
2018-07-06 16:00:59 +02:00
Peter Fabian
9c420125a3
Added tests for API query parameters for products endpoint.
2018-07-06 12:58:57 +02:00
Peter Fabian
8fd4777fb4
Fixed PHPCS whitespace.
2018-06-25 10:57:52 +02:00
Peter Fabian
6ba409b772
Added category related unit tests for products API.
2018-06-23 13:54:36 +02:00
Mike Jolley
9ec7eba0f6
update image URLs
2018-06-13 11:53:30 +01:00
Mike Jolley
01a3e359c3
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-13 10:18:38 +01:00
Peter Fabian
b5c420de99
Fixed milestone according to issue tag.
2018-06-07 15:36:27 +02:00
Peter Fabian
185675c69e
Added unit test to cover the orders/refund_id.
2018-06-07 14:58:53 +02:00
Gerhard Potgieter
54b23918b9
Fix broken system status unit test, https://github.com/woocommerce/woocommerce/pull/20231 introduced a new item to the schema
2018-05-25 14:19:14 +02: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
Rodrigo Primo
597033ca6f
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-04-24 13:47:22 -03:00
Mike Jolley
e951ff0a00
Fix test
2018-04-16 14:35:20 +01:00
Mike Jolley
1b34cd4745
Moved settings tabs around to allow for privacy page.
2018-04-12 16:59:42 +01:00
Mike Jolley
4e42b2cd30
Handle manage_stock mixed content for variations
2018-04-03 17:46:43 +01:00
Rodrigo Primo
bb553c88ae
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-03-29 12:05:55 -03:00
Mike Jolley
bec084ac16
Merge pull request #18493 from liquidweb/tests/api-system-status
...
Add tests for the "add_order_indexes" system status tool
2018-03-01 12:03:29 +00:00
Rodrigo Primo
3a480e5d80
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-03-01 08:02:08 -03:00
Mike Jolley
5feed3e0cc
Merge branch 'master' into update/add-ext-object-cache-to-system-status
2018-02-19 14:39:31 +00:00
Steve Grunwell
7878a9582f
Merge branch 'master' into tests/api-system-status
2018-02-15 23:16:58 +00:00
Gerhard Potgieter
780905cd0e
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-02-08 10:11:27 +02:00
Rodrigo Primo
2feacfb47a
Display whether or not external object cache is enabled
...
This commit adds a new line to the section "WordPress environment" of the system status page to indicate whether or not WP external object cache is enabled.
2018-01-29 15:56:01 -02:00
Rodrigo Primo
75fc594013
Manually fix coding standard violations that can't be fixed with phpcbf
2018-01-29 15:55:43 -02:00
Rodrigo Primo
a15ecc1601
Automatically fix coding standard violations using phpcbf
2018-01-29 15:53:54 -02:00
Steve Grunwell
16b59b60a0
Merge branch 'master' into feature/post-system-status-tool-hook
2018-01-24 01:45:44 +00:00
Paul Dechov
0eebd2b72a
Update payment gateway default enabled state in tests
2018-01-19 17:42:17 -05:00
Steve Grunwell
6aeba1d72a
Instead of testing the output of the message, verify that the postmeta fields are being re-created.
2018-01-18 18:52:57 +00:00
Steve Grunwell
90c1a310f1
For consistency with the other endpoints, rename the 'woocommerce_rest_system_status_tool_executed' hook to 'woocommerce_rest_insert_system_status_tool'.
...
Reference: https://github.com/woocommerce/woocommerce/pull/18505#pullrequestreview-89828432
2018-01-18 16:59:47 +00:00
Mike Jolley
778ccf0606
Update unit test helpers to use CRUD methods
2018-01-18 10:48:26 +00:00
Steve Grunwell
86c449accf
Add missing hard-stops and parentheses for new objects being instantiated, enabling tests/unit-tests/api/system-status.php to pass coding standard checks
2018-01-17 22:13:57 +00:00
Steve Grunwell
fa42eb0edf
Temporarily disable the WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar sniff at the end of the test_get_system_status_info_theme() method.
...
The wp_get_theme() function returns a WP_Theme object, which uses uppercase property names, which goes against typical WordPress conventions.
This uses the more modern (read: PHP_CodeSniffer 3.2.0+) syntax for temporarily disabling sniffs. For more details, please see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file .
2018-01-17 22:11:32 +00:00
Steve Grunwell
6b79619983
Add a file-level docblock for the WC_Tests_REST_System_Status class
2018-01-17 22:10:55 +00:00
Steve Grunwell
1a0fd86de5
*WHITESPACE ONLY* Fix alignment of code to satisfy PHP_CodeSniffer
2018-01-17 21:50:26 +00:00
Steve Grunwell
ff0e200ae5
Introduce the woocommerce_rest_system_status_tool_executed action, which fires after one of the WooCommerce REST system status tools is executed.
2018-01-17 21:48:23 +00:00
Steve Grunwell
6261ea6cbb
Temporarily disable the WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar sniff at the end of the test_get_system_status_info_theme() method.
...
The wp_get_theme() function returns a WP_Theme object, which uses uppercase property names, which goes against typical WordPress conventions.
This uses the more modern (read: PHP_CodeSniffer 3.2.0+) syntax for temporarily disabling sniffs. For more details, please see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file .
2018-01-15 17:21:35 +00:00
Steve Grunwell
00268c0fa2
Add a file-level docblock for the WC_Tests_REST_System_Status class
2018-01-15 17:06:42 +00:00
Steve Grunwell
477245c693
The WordPress coding standards dictate that new object instantiation should always use parenthesis
2018-01-15 17:05:01 +00:00
Steve Grunwell
b4f14b4958
Add missing hard-stops at the end of comments, and a missing method comment for test_execute_system_tool_add_order_indexes()
2018-01-15 17:04:27 +00:00
Steve Grunwell
1843a05ea6
*WHITESPACE ONLY* Fix alignment of code to satisfy PHP_CodeSniffer
2018-01-15 17:03:36 +00:00
Steve Grunwell
8484991f99
Add tests around the add_order_indexes system status tool.
...
This test ensures that indexes are created within postmeta for any orders that are missing billing_address_index and/or shipping_address_index values.
2018-01-15 16:56:44 +00:00