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
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
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
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
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
Mike Jolley
1d38a92638
Fix test
2017-08-21 12:38:14 +01:00
Mike Jolley
cd15e18e68
Fix failing test
2017-08-17 15:45:26 +01:00
Jason Conroy
d3dd9292fe
Update api unit tests to check for 5 pages
2017-07-13 16:27:16 +10:00
Mike Jolley
e478527c03
Fix test
2017-04-10 21:57:10 +01:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Claudio Sanches
9ac1ebe748
Updated unit tests for REST API
2017-02-09 18:21:52 -02:00
Mike Jolley
6a7ceab462
Fix tests by casting to array
2016-12-07 11:37:11 +00:00
Claudio Sanches
c58bef1fa4
Include tests for security endpoint
2016-11-09 22:29:17 -02:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Aristeides Stathopoulos
39d4d4bd69
Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar
2016-09-02 05:40:36 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Justin Shreve
35cae38aa2
Fix issues from PR review: sanitize/escape fixes in wp-admin, remove modes.
2016-08-09 10:14:47 -07:00
Justin Shreve
b198e6d65b
Add the ability to see and update system status modes (shipping debug, template debug, uninstall...)
2016-08-09 09:51:30 -07:00
Justin Shreve
9dbd365be8
First pass at system status tools. Fully functioning endpoints for listing tools, listing data about a specific tool, and executing a tool.
2016-08-09 09:51:30 -07:00
Justin Shreve
8df6ff3c7b
Convert wp-admin's system status page to use the same backend code as the API.
2016-08-03 10:50:47 -07:00
Justin Shreve
5d95b76e1a
Rename the endpoint from system-status to system_status (matches the rest of WC endpoints).
2016-07-27 14:06:14 -07:00
Justin Shreve
e436e96654
Add missing textdomains, remove wc_ prefix from a few fields, spacing/coding standard fixes.
2016-07-27 13:59:16 -07:00
Justin Shreve
041b5745b4
Finish system status tests
2016-07-27 12:19:14 -07:00
Justin Shreve
817ed71d2a
Test file rename
2016-07-27 10:29:45 -07:00