| 1 | = CiviCRM Testing |
| 2 | |
| 3 | Summary and expansion of the procedure outlined in the CiviCRM page [[http://wiki.civicrm.org/confluence/display/CRM/Setting+up+your+personal+testing+sandbox+HOWTO|Settings up your personal testing sandbox]]. |
| 4 | |
| 5 | 1. Create DB {{{civicrm_tests_dev}}} |
| 6 | 1. Create the test user with SUPER privileges. |
| 7 | 1. cd /path-to/civicrm |
| 8 | 1. mysql -u user -p -hhostname civicrm_tests_dev < sql/civicrm.mysql |
| 9 | 1. mysql -u user -p -hhostname civicrm_tests_dev < sql/civicrm_generated.mysql |
| 10 | 1. In the file {{{<path to civicrm>/tests/phpunit/CiviTest/civicrm.settings.local.php}}} add the line {{{define('CIVICRM_DSN', 'mysql://db_username:db_password@localhost/civicrm_tests_dev');}}} |