mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-16 20:30:09 -07:00
Use pdo_mysql in tests
This commit is contained in:
parent
e1714c415e
commit
edcb7fa98d
@ -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`
|
Unmatched relations can be specified by adding relation of IDs to `app/Resources/relations/part_model.yml`
|
||||||
|
|
||||||
## Testing
|
## 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.
|
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.
|
||||||
|
@ -17,14 +17,15 @@ swiftmailer:
|
|||||||
|
|
||||||
doctrine:
|
doctrine:
|
||||||
dbal:
|
dbal:
|
||||||
default_connection: default
|
driver: pdo_mysql
|
||||||
connections:
|
host: "%database_host%"
|
||||||
default:
|
port: "%database_port%"
|
||||||
driver: pdo_sqlite
|
dbname: printabrick_testdb
|
||||||
path: "%kernel.cache_dir%/test.db"
|
user: "%database_user%"
|
||||||
|
password: "%database_password%"
|
||||||
liip_functional_test:
|
charset: UTF8
|
||||||
cache_sqlite_db: true
|
options:
|
||||||
|
1001: true
|
||||||
|
|
||||||
oneup_flysystem:
|
oneup_flysystem:
|
||||||
adapters:
|
adapters:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user