1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-16 04:10:09 -07:00

Use pdo_mysql in tests

This commit is contained in:
Unknown 2017-06-23 22:18:42 +02:00
parent e1714c415e
commit edcb7fa98d
2 changed files with 15 additions and 8 deletions

View File

@ -65,4 +65,10 @@ Relations between LDraw models and Rebrickable parts are matched automatically b
Unmatched relations can be specified by adding relation of IDs to `app/Resources/relations/part_model.yml`
## Testing
The test database must be created before the first test runs. You can create new one by running:
1. Generate an empty database by running command (if it does not yet exist) `$ bin/console doctrine:database:create --env=test`
2. Create database tables/schema by running command`$ bin/console doctrine:schema:create --env=test`
You can run complete system tests by `$ phpunit`. These should cover the main system functions and the functionality of calling the third-party programs that are required are needed to seamlessly retrieve the necessary application data.

View File

@ -17,14 +17,15 @@ swiftmailer:
doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_sqlite
path: "%kernel.cache_dir%/test.db"
liip_functional_test:
cache_sqlite_db: true
driver: pdo_mysql
host: "%database_host%"
port: "%database_port%"
dbname: printabrick_testdb
user: "%database_user%"
password: "%database_password%"
charset: UTF8
options:
1001: true
oneup_flysystem:
adapters: