Repository navigation
Expand file tree
/
Copy pathphpunit-multisite.xml.dist
More file actions
58 lines (55 loc) · 1.83 KB
/
Copy pathphpunit-multisite.xml.dist
File metadata and controls
58 lines (55 loc) · 1.83 KB
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
50
51
52
53
54
55
56
57
58
<?xml version="1.0"?>
<!--
PHPUnit configuration for Zero Spam for WordPress (multisite network).
Run through composer test:multisite (bin/test.sh).
WP_MULTISITE must be an environment variable, not a constant: the
WordPress test installer runs in a separate PHP process.
-->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/phpunit/bootstrap.php"
backupGlobals="false"
colors="true"
convertDeprecationsToExceptions="true"
failOnWarning="true"
failOnRisky="true"
beStrictAboutTestsThatDoNotTestAnything="true"
>
<testsuites>
<testsuite name="unit">
<directory prefix="test-" suffix=".php">tests/phpunit/unit</directory>
</testsuite>
<testsuite name="integration">
<directory prefix="test-" suffix=".php">tests/phpunit/integration</directory>
</testsuite>
<testsuite name="multisite">
<directory prefix="test-" suffix=".php">tests/phpunit/multisite</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<!-- Single-site only behaviour. -->
<group>ms-excluded</group>
<!-- Documents a confirmed bug and fails until it is fixed; run with composer test:defects. -->
<group>known-defect</group>
</exclude>
</groups>
<php>
<!-- What this configuration tests; the bootstrap refuses a mismatch. -->
<const name="ZEROSPAM_TESTS_EXPECT_MULTISITE" value="true"/>
<env name="WP_MULTISITE" value="1" force="true"/>
<env name="WP_TESTS_DB_NAME" value="zerospam_tests_ms"/>
</php>
<coverage includeUncoveredFiles="true">
<include>
<file>wordpress-zero-spam.php</file>
<directory suffix=".php">core</directory>
<directory suffix=".php">includes</directory>
<directory suffix=".php">modules</directory>
</include>
<exclude>
<directory>includes/templates</directory>
</exclude>
</coverage>
</phpunit>