woocommerce/tests/legacy/unit-tests/util
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
..
api-functions.php Miscellaneous code hacking fixes: 2020-05-20 09:56:25 +02:00
class-wc-rate-limiter.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-tests-core-functions.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-tests-user-functions.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-tests-wc-query.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
conditional-functions.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
deprecated-hooks.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
dummy-wc-logger.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
install.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
notice-functions.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
plugin-updates.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
validation.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00