Clean up test related code.

This commit is contained in:
James Cole 2023-02-04 17:43:54 +01:00
parent fd7ba9dd57
commit d58c230f00
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
4 changed files with 3 additions and 36 deletions

View File

@ -60,7 +60,7 @@ APP_LOG_LEVEL=info
# Use "pgsql" for PostgreSQL
# Use "mysql" for MySQL and MariaDB.
# Use "sqlite" for SQLite.
DB_CONNECTION=sqlite_test
DB_CONNECTION=sqlite
# MySQL supports SSL. You can configure it here.
# If you use Docker or similar, you can set these variables from a file by appending them with _FILE
@ -127,7 +127,6 @@ MAIL_ENCRYPTION=null
MAILGUN_DOMAIN=
MAILGUN_SECRET=
# If you are on EU region in mailgun, use api.eu.mailgun.net, otherwise use api.mailgun.net
# If you use Docker or similar, you can set this variable from a file by appending it with _FILE
MAILGUN_ENDPOINT=api.mailgun.net
@ -136,7 +135,6 @@ MAILGUN_ENDPOINT=api.mailgun.net
MANDRILL_SECRET=
SPARKPOST_SECRET=
# Firefly III can send you the following messages
SEND_REGISTRATION_MAIL=true
SEND_ERROR_MESSAGE=true
@ -223,7 +221,6 @@ ADLDAP_ADMIN_PASSWORD=
ADLDAP_ACCOUNT_PREFIX=
ADLDAP_ACCOUNT_SUFFIX=
# LDAP authentication settings.
ADLDAP_PASSWORD_SYNC=false
ADLDAP_LOGIN_FALLBACK=false

View File

@ -25,9 +25,7 @@ cp .ci/.env.ci ../.env
# download test database
# TODO no longer exists
wget --quiet https://raw.githubusercontent.com/firefly-iii/test-data/main/test_db.sqlite -o storage/database/test_db.sqlite
#wget https://raw.githubusercontent.com/firefly-iii/test-data/main/test_database.sqlite -o storage/database/database.sqlite
# run phpunit
./vendor/bin/phpunit --configuration phpunit.coverage.xml
exit 0
./vendor/bin/phpunit --configuration phpunit.xml

View File

@ -80,11 +80,6 @@ return [
'database' => envNonEmpty('DB_DATABASE', storage_path('database/database.sqlite')),
'prefix' => '',
],
'sqlite_test' => [
'driver' => 'sqlite',
'database' => envNonEmpty('DB_DATABASE', storage_path('database/test_db.sqlite')),
'prefix' => '',
],
'mysql' => [
'driver' => 'mysql',
'host' => envNonEmpty('DB_HOST', $host),

View File

@ -37,29 +37,6 @@
<testsuites>
<testsuite name="Api">
<directory suffix="Test.php">./tests</directory>
<!--
<directory suffix="Test.php">./tests/Api</directory>
<directory suffix="Test.php">./tests/Api/Models/Account</directory>
<directory suffix="Test.php">./tests/Api/Models/Attachment</directory>
<directory suffix="Test.php">./tests/Api/Models/AvailableBudget</directory>
<directory suffix="Test.php">./tests/Api/Models/Bill</directory>
<directory suffix="Test.php">./tests/Api/Models/Budget</directory>
<directory suffix="Test.php">./tests/Api/Models/BudgetLimit</directory>
<directory suffix="Test.php">./tests/Api/Models/Category</directory>
<directory suffix="Test.php">./tests/Api/Models/ObjectGroup</directory>
<directory suffix="Test.php">./tests/Api/Models/PiggyBank</directory>
<directory suffix="Test.php">./tests/Api/Models/Recurrence</directory>
<directory suffix="Test.php">./tests/Api/Models/Rule</directory>
<directory suffix="Test.php">./tests/Api/Models/RuleGroup</directory>
<directory suffix="Test.php">./tests/Api/Models/Tag</directory>
<directory suffix="Test.php">./tests/Api/Models/Transaction</directory>
<directory suffix="Test.php">./tests/Api/Models/TransactionLink</directory>
<directory suffix="Test.php">./tests/Api/Models/TransactionLinkType</directory>
<directory suffix="Test.php">./tests/Api/Webhook</directory>
<directory suffix="Test.php">./tests/Api/Models/TransactionCurrency</directory>
-->
</testsuite>
</testsuites>
<php>