e68084d7b8
There are a number of files that are only loaded when another function is called (for example, load a reporting class when displaying a widget). An autoloader would be the ideal way to handle this (both in production and for tests), but until PHP compatibility is sorted out this commit adds an easy fix: Testcases can now populate the protected, static $includes property with filepaths relative to the project root; when the testcase boots up, these files will automatically be included. |
||
---|---|---|
.. | ||
helpers | ||
vendor | ||
class-wc-api-unit-test-case.php | ||
class-wc-dummy-data-store.php | ||
class-wc-mock-session-handler.php | ||
class-wc-mock-wc-data.php | ||
class-wc-mock-wc-object-query.php | ||
class-wc-payment-token-stub.php | ||
class-wc-rest-unit-test-case.php | ||
class-wc-unit-test-case.php | ||
class-wc-unit-test-factory.php |