Repository navigation
Expand file tree
/
Copy pathphpunit.xml
More file actions
71 lines (66 loc) · 3.06 KB
/
Copy pathphpunit.xml
File metadata and controls
71 lines (66 loc) · 3.06 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
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
<!--
The security suite. One file per numbered invariant in the specification, so a reviewer
can map the tests back to the document. Run it on its own by passing the Invariants
testsuite to pest; see the "test:invariants" composer script.
-->
<testsuite name="Invariants">
<directory>tests/Invariants</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>app</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="BROADCAST_CONNECTION" value="null"/>
<env name="CACHE_STORE" value="array"/>
<env name="MAIL_MAILER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="PULSE_ENABLED" value="false"/>
<env name="TELESCOPE_ENABLED" value="false"/>
<env name="NIGHTWATCH_ENABLED" value="false"/>
<!--
Tests run against Postgres, not SQLite. The audit log depends on a trigger and on
revoked table privileges, neither of which SQLite can express, so testing on a
different engine would be testing something other than what ships.
-->
<env name="DB_CONNECTION" value="pgsql"/>
<env name="DB_DATABASE" value="db_test"/>
<env name="DB_URL" value=""/>
<!--
The replay-nonce store is exercised for real rather than faked. Faking it would hide
the fail-closed behaviour that invariant 15 turns on.
-->
<env name="REDIS_CLIENT" value="predis"/>
<!--
Off here, and on everywhere else.
The queue connection above is `sync`, and SiteFactory gives every site a real-looking
faker domain. So a test that posts sites.refresh without this would perform live DNS
lookups and HTTP requests, from CI, against domains belonging to strangers - and it would
do so silently, because the probe records a failure rather than throwing.
Left to each test to remember, this comes back the first time somebody adds a case that
presses Refresh for an unrelated reason. So the default is off and the tests that mean to
probe turn it on with config(), which also makes "does this test make outbound requests"
a question answered by reading the test.
-->
<env name="MANAGER_PROBE_ON_REFRESH" value="false"/>
</php>
</phpunit>