Claudiu Lodromanean
8ce5356943
13106 Dont round values in get_on_sale_products
2017-02-07 13:46:00 -08:00
Claudio Sanches
1fe705547f
Fixed REST API batch tests
2017-02-02 19:20:07 +01:00
Mike Jolley
40e9eabf9f
Merge pull request #12983 from woocommerce/get_tax_classes
...
WC_Tax::get_tax_class_slugs()
2017-01-26 14:10:04 +00:00
Mike Jolley
9eaffcde42
Merge pull request #12980 from woocommerce/fix/payment-token-update-props
...
When updating payment tokens, only update the props that have changed & fire off a hook of the changed props.
2017-01-26 14:06:44 +00:00
Justin Shreve
474a307420
Introduce get_tax_class_slugs.
2017-01-25 13:38:13 -08:00
Jon Surrell
994167046f
Disable coverage except on master, not PR, 7.1 builds
...
This should vastly increase most automated travis builds.
Coverage reports are only interesting on master and not needed on all PRs.
2017-01-25 22:28:57 +01:00
Justin Shreve
32651f638c
When updating payment tokens, only update the props that have changed + fire off a hook of the changed props.
2017-01-25 11:05:54 -08:00
Jon Surrell
2bd8b6efbc
Validate handlers implement WC_Log_handler_Interface
...
Add tests for interface validation.
2017-01-24 23:07:58 +01:00
Mike Jolley
086ed58084
Merge pull request #12943 from woocommerce/fix-unit-tests-bootstrap
...
Fixed compatibility with 4.7 in tests bootstrap
2017-01-23 20:42:39 +00:00
Claudio Sanches
09123c9fc8
Merge pull request #12926 from woocommerce/fix-12910
...
Use mb_ functions in wc_get_wildcard_postcodes
2017-01-23 15:48:59 -02:00
Claudio Sanches
26091c4644
Fixxed compatibility with 4.7 in tests bootstrap
2017-01-23 15:37:26 -02:00
Mike Jolley
66914966fb
Adjust meta saving code throughout
...
#12885
2017-01-23 11:30:53 +00:00
Mike Jolley
f0049367ae
Use mb_ functions and add tests
2017-01-22 01:24:20 +00:00
Claudio Sanches
d536d15652
Merge branch 'master' of github.com:woocommerce/woocommerce
2017-01-18 16:01:02 -02:00
Claudio Sanches
f54e9e1e1a
Fixed coding standards
2017-01-18 15:16:01 -02:00
Justin Shreve
5fe996930f
Fix alignment
2017-01-17 12:55:53 -08:00
Justin Shreve
b660eda4b8
Add date searching to wc_get_orders.
2017-01-17 12:52:27 -08:00
Jon Surrell
9069bce4d3
Change travis setup to exclude coverage from all but latest stable
...
Add PHP_LATEST_STABLE env to travis
Use same bash conditional for test scripts
2017-01-16 21:11:21 +01:00
Jon Surrell
b422de03ef
Add tests for wc_get_logger
...
When filter provided class doesn't implement
WC_Logger_Interface, test for wc_doing_it_wrong
and use WC_Logger
2017-01-14 18:45:51 +01:00
Jon Surrell
5d7665671c
Remove WC_Logger::remove
...
This method was added post 2.6 and does not need to be maintained/deprecated.
Remove related test.
2017-01-13 06:48:57 +01:00
Jon Surrell
bb1ece4c31
Add test for deprecated WC_Logger::remove
2017-01-12 22:25:02 +01:00
Jon Surrell
29b3917f0e
Test deprecated WC_Logger::clear functionality
2017-01-12 22:23:02 +01:00
Claudio Sanches
9c27661dea
Synchronized with master
2017-01-12 17:53:15 -02:00
Jon Surrell
e8fd29520f
Un-deprecate wc_get_log_file_path
2017-01-12 20:39:39 +01:00
Mike Jolley
ab76036c1f
Enable 7.1 tests
2017-01-11 12:58:10 +00:00
Jon Surrell
1006fc209e
Fix DB handler tests for default source
2017-01-08 22:15:04 +01:00
Jon Surrell
acd338fb87
Add default source to WC_Log_Handler_DB
2017-01-08 21:42:56 +01:00
Dwain Maralack
e8fc25bb00
Unit Tests: Add new parameter to order helper create_order method to allow clients to override the default product.
2017-01-05 11:23:22 +02:00
Justin Shreve
e4937b898d
Fix PHP 7.1 warnings/notices.
2017-01-04 10:45:45 -08:00
Justin Shreve
291a662be1
The WC API returns exclude_product_ids and expiry_date. 2.7 renamed these in the API file, which we should not do until we version the endpoints.
2017-01-03 10:25:36 -08:00
Mike Jolley
98b79ddf5b
Unit test warnings
2017-01-03 12:19:03 +00:00
Mike Jolley
5ec8ef50e6
Correct case
2017-01-03 11:57:21 +00:00
Jon Surrell
a33fac966d
Use plural in multiple log email
2016-12-29 11:58:43 +01:00
Jon Surrell
5367baeadd
Fix tests for different threshold configuration
...
No filtering by default.
Options configuration has been removed.
2016-12-29 11:58:43 +01:00
Jon Surrell
fbd91fe376
Improve email handler subject
2016-12-29 11:58:43 +01:00
Jon Surrell
4b13e3b053
Do not deprecate WC_Logger::add
2016-12-29 11:58:43 +01:00
Jon Surrell
e4d5886427
Replace log `tag` with log `source`
2016-12-29 11:58:43 +01:00
Jon Surrell
af7b8646c5
Remove unneeded setUp and tearDown
...
WC_Logger tests no longer depend on writing/reading from log files.
2016-12-29 11:58:43 +01:00
Jon Surrell
5700043e6d
Deprecate wc_get_log_file_path
...
wc_get_log_file_path moves into `WC_Log_Handler_File` class as a static
method.
Update deprecations and version info.
2016-12-29 11:58:43 +01:00
Jon Surrell
065277a596
Fix WC_Logger::add test to match new 'notice' level.
2016-12-29 11:58:43 +01:00
Jon Surrell
50eb303a73
Fix WC_Log_Levels::is_valid_level tests
...
The wrong method was being called in tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
23a45125e7
Add unit tests for wc_print_r()
...
Clean up some log logic ( `assertEquals( true ... )` becomse `assertTrue( ... )` ).
2016-12-29 11:58:43 +01:00
Jon Surrell
3f4b473a48
Improve PHP 5.2 test compatibility (older PHPUnit version)
2016-12-29 11:58:43 +01:00
Jon Surrell
b94d029546
Improve test compatibility (PHP 5.2)
2016-12-29 11:58:43 +01:00
Jon Surrell
fe837c5113
Aggregate email handler messages (max: 1 email/request/handler)
...
Update emails accordingly.
Update email handler tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
9ba616b2c1
Return single instance from wc_get_logger
...
Remove class include from wc_get_logger (should be autoloaded).
Add tests for wc_get_logger.
2016-12-29 11:58:43 +01:00
Jon Surrell
5af479f61b
Add email log handler tests
2016-12-29 11:58:43 +01:00
Jon Surrell
080cf8e436
Store log levels as integer representations in database
...
This will allow indexed ordering by severity.
Add WC_Log_Levels::get_severity_level method to translate severity
integers to level strings. The inverse of WC_Log_Levels::get_level_severity.
Add context to tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
825d9c9f82
Fix spelling
2016-12-29 11:58:43 +01:00
Jon Surrell
88836b9cca
Drop WP_DEBUG override threshold. Improve logger tests.
...
This may be unexpected behavior for a user, their level is overridden with no
way to change it. It also greatly complicates testing default thresholds.
Dependency on WC_Log_Handler_File has been removed from logger tests.
2016-12-29 11:58:43 +01:00