- Using any database modification tool (phpmysql, navicat, mysql) modify templates database.
- Execute
bin/cake fixture_import dump
this will createconfig/sql/test_db.sql
- Execute
bin/cake db_test -i
to import sql file. - Add modified sql file into repository.
To update database structure the following steps need to beperformed:
- Apply migrations for test_template database
bin/cake migrations migrate --connection test_template
- Execute
bin/cake fixture_import dump
- Execute
bin/cake db_test -i
to import sql file. - Add modified sql file into repository.
Copy phpunit.xml.dbtest as phpunit.xml.dist in your project (modify if needed) and then run phpunit
.
Verbose mode enabled by second parameter of FixtureInjector set to true. It is defined in phpunit.xml.dist in arguments section of FixtureInjector listener.