<?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>
    </testsuites>
    <source>
        <include>
            <directory>app</directory>
        </include>
    </source>
    <php>
        <env name="APP_ENV" value="testing"/>
        <!-- Pinned so the suite does not inherit a developer's local deployment URL,
             which may be served from a subdirectory. -->
        <env name="APP_URL" value="http://localhost"/>
        <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"/>
        <!-- The sign-in human check is exercised by its own tests, which enable
             it explicitly. Left on here it would stand in front of every test
             that types a wrong password on purpose. -->
        <env name="HUMAN_CHECK_ENABLED" value="false"/>
        <!-- Asking registries and DNS whether a domain is taken reaches the
             network, which no test may do. DomainAvailabilityTest turns it on
             with the registry and DNS faked. -->
        <env name="BINDUHOST_DOMAIN_LOOKUPS" value="false"/>
        <!-- Pinned empty so the suite does not inherit a developer's own POS
             connection: with one set, the Shops screen would ask a real POS for
             its shops, and every POS subscription page would grow a button.
             The tests for both set what they need and fake the POS. -->
        <env name="POS_URL" value=""/>
        <env name="POS_VISIT_SECRET" value=""/>
        <env name="DB_CONNECTION" value="sqlite"/>
        <env name="DB_DATABASE" value=":memory:"/>
        <env name="DB_URL" value=""/>
        <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"/>
    </php>
</phpunit>
