51 lines
2.6 KiB
XML
51 lines
2.6 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/11.5/phpunit.xsd"
|
|
bootstrap="tests/bootstrap.php"
|
|
cacheDirectory=".phpunit.cache"
|
|
colors="true"
|
|
>
|
|
<testsuites>
|
|
<testsuite name="Tonehaus Test Suite">
|
|
<directory>tests</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
|
|
<php>
|
|
<server name="APP_ENV" value="test" force="true"/>
|
|
<server name="APP_DEBUG" value="1" force="true"/>
|
|
<server name="KERNEL_CLASS" value="App\Kernel" force="true"/>
|
|
<server name="DATABASE_DRIVER" value="sqlite" force="true"/>
|
|
<server name="DATABASE_SQLITE_PATH" value="/tmp/tonehaus_test.sqlite" force="true"/>
|
|
<server name="JWT_PASSPHRASE" value="test" force="true"/>
|
|
|
|
<!-- ###+ symfony/framework-bundle ### -->
|
|
<env name="APP_ENV" value="dev"/>
|
|
<env name="APP_SECRET" value="test-secret"/>
|
|
<!-- ###- symfony/framework-bundle ### -->
|
|
|
|
<!-- ###+ symfony/routing ### -->
|
|
<!-- Configure how to generate URLs in non-HTTP contexts, such as CLI commands. -->
|
|
<!-- See https://symfony.com/doc/current/routing.html#generating-urls-in-commands -->
|
|
<env name="DEFAULT_URI" value="http://localhost"/>
|
|
<!-- ###- symfony/routing ### -->
|
|
|
|
<!-- ###+ doctrine/doctrine-bundle ### -->
|
|
<!-- Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -->
|
|
<!-- IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml -->
|
|
<!-- -->
|
|
<!-- DATABASE_URL="sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db" -->
|
|
<!-- DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4" -->
|
|
<!-- DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4" -->
|
|
<env name="DATABASE_URL" value="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"/>
|
|
<!-- ###- doctrine/doctrine-bundle ### -->
|
|
|
|
<!-- ###+ lexik/jwt-authentication-bundle ### -->
|
|
<env name="JWT_SECRET_KEY" value="%kernel.project_dir%/config/jwt/private.pem"/>
|
|
<env name="JWT_PUBLIC_KEY" value="%kernel.project_dir%/config/jwt/public.pem"/>
|
|
<env name="JWT_PASSPHRASE" value="f5b6626c282780b036de5dad4b5aa9a42ef5ec4632ecfbefc840eb02a60fae0c"/>
|
|
<!-- ###- lexik/jwt-authentication-bundle ### -->
|
|
</php>
|
|
</phpunit>
|