mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-24 11:22:42 +01:00
d915c646bb
In lots environments having files with secrets is common (e.g. with NixOS where static secrets in config files are not secure). This new environment variable adds support for this. If a APP_KEY is defined it will take precedence ofer APP_KEY_FILE Tests have been added to show this beaviour.
34 lines
1.1 KiB
XML
34 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit backupGlobals="false"
|
|
backupStaticAttributes="false"
|
|
bootstrap="vendor/autoload.php"
|
|
colors="true"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
processIsolation="false"
|
|
stopOnFailure="false">
|
|
<testsuites>
|
|
<testsuite name="Feature">
|
|
<directory suffix="Test.php">./tests/Feature</directory>
|
|
</testsuite>
|
|
|
|
<testsuite name="Unit">
|
|
<directory suffix="Test.php">./tests/Unit</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<filter>
|
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
|
<directory suffix=".php">./app</directory>
|
|
</whitelist>
|
|
</filter>
|
|
<php>
|
|
<env name="APP_ENV" value="testing"/>
|
|
<env name="DB_CONNECTION" value="testing"/>
|
|
<env name="CACHE_DRIVER" value="array"/>
|
|
<env name="SESSION_DRIVER" value="array"/>
|
|
<env name="QUEUE_DRIVER" value="sync"/>
|
|
<env name="APP_KEY" value="value_from_phpunit"/>
|
|
</php>
|
|
</phpunit>
|