forked from liquidweb/woocommerce-custom-orders-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
49 lines (43 loc) · 1.75 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<!-- Plugin-specific tests. -->
<testsuite name="plugin">
<directory prefix="test-" suffix=".php">./tests/</directory>
<exclude>tests/test-sample.php</exclude>
</testsuite>
<!-- WooCommerce core test suite. -->
<testsuite name="core">
<directory suffix=".php">./vendor/woocommerce/woocommerce/tests/unit-tests</directory>
<!--
Exclude tests from the core test suite that won't pass without crazy work-arounds.
In this case, WC_Tests_REST_System_Status::test_execute_system_tool_add_order_indexes()
will fail, because the test is specific to order indexes being explicitly stored in
postmeta (there are no CRUD operations for billing/shipping_index within WooCommerce).
@link https://github.com/woocommerce/woocommerce/pull/18493
-->
<exclude>./vendor/woocommerce/woocommerce/tests/unit-tests/api/system-status.php</exclude>
<exclude>./vendor/woocommerce/woocommerce/tests/unit-tests/api/v2/system-status.php</exclude>
<!--
Combinations of PHP < 7.2 and WooCommerce < 3.4 are failing due to the
WC_Tests_Product_CSV_Importer::test_import() test, which relies on an external HTTP
request that's failing.
@link https://github.com/woocommerce/woocommerce/commit/0e785d46146c04f05d4ed5bc06e9ea2d575553b0
-->
<exclude>./vendor/woocommerce/woocommerce/tests/unit-tests/importer/product.php</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">includes</directory>
<file>woocommerce-custom-orders-table.php</file>
</whitelist>
</filter>
</phpunit>