Files
timebank-cc-public/phpunit.xml
T

55 lines
2.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
<!-- Jetstream defaults for features this app replaced with its own components -->
<exclude>./tests/Feature/Security/_Removed_Jetstream_Tests</exclude>
</testsuite>
</testsuites>
<php>
<server name="APP_ENV" value="local"/>
<server name="APP_DEBUG" value="true"/>
<server name="APP_URL" value="http://192.168.0.103:8012"/>
<!-- Compiled views of their own: WireUI writes the absolute APP_URL into a compiled layout, and the
dev site would otherwise serve the tests' address (its dropdowns then fail to load their script). -->
<server name="VIEW_COMPILED_PATH" value="storage/framework/testing/views"/>
<!-- No real broadcasts: otherwise tests that fire broadcast events fail with a 500 whenever the dev
site's Reverb (localhost:8080) is not running. -->
<server name="BROADCAST_DRIVER" value="null"/>
<!-- Localized routes take their prefix from the request URL at boot; tests have none, so force it -->
<server name="ROUTING_LOCALE" value="en"/>
<server name="DB_CONNECTION" value="mysql"/>
<server name="DB_HOST" value="127.0.0.1"/>
<server name="DB_PORT" value="3306"/>
<server name="DB_DATABASE" value="timebank_cc_testing"/>
<server name="DB_USERNAME" value="root"/>
<server name="DB_PASSWORD" value="8(jVbb&gt;&gt;MaG9Fe#9=g.Saf&gt;ORv1QW6"/>
<!-- Tests never read the developer's own platform folder; platform tests build their own -->
<server name="PLATFORM_PATH" value="storage/framework/testing/no-platform"/>
<server name="CACHE_DRIVER" value="redis"/>
<server name="REDIS_HOST" value="127.0.0.1"/>
<server name="REDIS_PORT" value="6379"/>
<server name="MAIL_MAILER" value="smtp"/>
<server name="MAIL_HOST" value="smtp.mailtrap.io"/>
<server name="MAIL_PORT" value="2525"/>
<server name="MAIL_USERNAME" value="aa6388c09181ef"/>
<server name="MAIL_PASSWORD" value="589b35325c81ea"/>
<server name="MAIL_ENCRYPTION" value="tls"/>
<server name="MAIL_FROM_ADDRESS" value="info@timebank_2.cc"/>
<server name="MAIL_FROM_NAME" value="Timebank.cc dev on Thinkpad-P53"/>
<!-- null: tests share the dev site's Redis; queued jobs would land in its real queue and fail there -->
<server name="QUEUE_CONNECTION" value="null"/>
<server name="SESSION_DRIVER" value="database"/>
<server name="TELESCOPE_ENABLED" value="false"/>
</php>
<source>
<include>
<directory suffix=".php">./app</directory>
</include>
</source>
</phpunit>