woocommerce/tests/legacy/unit-tests
Nestor Soriano 1a68abbc28 Miscellaneous code hacking fixes:
- Fix how CodeHackerTestHook::executeBeforeTest parses the test name,
  to account for warnings and tests with data sets.

- CodeHackerTestHook now includes a executeAfterTest hook that
  disables the code hacker (needed to prevent it from inadvertently
  altering further tests). Also, clear_hacks is executed in
  executeBeforeTest for the same reason.

- CodeHacker gets restore, clear_hacks and is_enabled methods
  to support the changes in CodeHackerTestHook.

- FunctionsMockerHack fixed so that it doesn't modify strings
  that are class method definitions.

- Added the WC_Unit_Test_Case::file_copy method, it must be used
  instead of the PHP built-in "copy" in tests, otherwise tests
  that run with the code hacker active will fail.
  This is something to investigate.
2020-05-20 09:56:25 +02:00
..
account Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
admin Merge pull request #26399 from woocommerce/fix/uploads_htaccess 2020-05-19 15:56:37 +05:30
attributes Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
cart Fixed cart get total unit test 2020-05-08 23:17:59 +05:30
checkout Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
core Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
countries Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
coupon Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
crud Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
customer Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
discounts Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
email Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
exporter Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
formatting Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
gateways Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
geolocation Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
importer Miscellaneous code hacking fixes: 2020-05-20 09:56:25 +02:00
integrations Miscellaneous code hacking fixes: 2020-05-20 09:56:25 +02:00
libraries Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
log Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
order Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
order-items Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
packages Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
page-functions Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
payment-gateways Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
payment-tokens Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
privacy Merge branch 'privacy-exporter-group-description' of git://github.com/garretthyder/woocommerce into garretthyder-privacy-exporter-group-description 2020-05-12 09:40:17 -07:00
product Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
queue Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
session Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
settings Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
setup Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
shipping Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
shortcodes Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
tax Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
templates Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
totals Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
util Miscellaneous code hacking fixes: 2020-05-20 09:56:25 +02:00
webhooks Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
widgets Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00