CRM-16387 - bin/cli.php - Allow calls against the test database
authorTim Otten <totten@civicrm.org>
Mon, 11 May 2015 20:44:10 +0000 (13:44 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 15 Jun 2015 17:34:02 +0000 (10:34 -0700)
commitdc1e9be866bedb017cf28beafbe5cdf39d6457a5
tree764ca5def7c6d5e6c2bff6ef8ca342798ab3389b
parentb7440df523a7f263bfd30dc241e5d1eb33422650
CRM-16387 - bin/cli.php - Allow calls against the test database

Example:

```bash
env CIVICRM_SETTINGS=/path/to/civicrm/tests/phpunit/CiviTest/civicrm.settings.cli.php \
  php bin/cli.php -e Contact -a getfields --output
```

This will assist in creating tests for multi-process cron behavior.
CRM/Utils/System.php
CRM/Utils/System/UnitTests.php
bin/cli.class.php
tests/phpunit/CiviTest/civicrm.settings.cli.php [new file with mode: 0644]