woocommerce/tests/unit-tests/gateways
Rodrigo Primo 8b62d5b06e Reduce WC_Tests_Paypal_Gateway_Request::test_request_url() execution time
This commits reduces the execution time of the test WC_Tests_Paypal_Gateway_Request::test_request_url() from about 30s to about 6s (which is still super slow and even after this change this test is still the slowest in our test suite). This test creates several products that are needed to test different scenarios. To make it run faster, the code was changed to create the WC_Product objects without saving them to the database. Just interacting with the objects is enough to this test and skipping the database makes it run much faster. Other tests might benefit from the same technique.
2018-08-27 19:04:50 -03:00
..
paypal Reduce WC_Tests_Paypal_Gateway_Request::test_request_url() execution time 2018-08-27 19:04:50 -03:00
gateways.php Remove unnecessary clean up code from unit tests 2018-08-23 15:15:17 -03:00