CRM_AllTests - Fix hidden GroupTest/TransactionTest interaction (#8115)
authorTim Otten <totten@civicrm.org>
Tue, 12 Apr 2016 22:19:46 +0000 (15:19 -0700)
committerEileen McNaughton <eileen@mcnaughty.com>
Tue, 12 Apr 2016 22:19:46 +0000 (10:19 +1200)
commite95fbe727724c83b043fc7817493d84d5de1537d
treea7f32ec2b7a2e4ae1292d0f91454c9af1226963f
parentbbaa79ff31f1380cafc8e46884e699ba7b1f3ac2
CRM_AllTests - Fix hidden GroupTest/TransactionTest interaction (#8115)

There's a hidden test interaction where CRM_Contact_BAO_GroupTest causes
CRM_Core_TransactionTest to fail, and this seems to involve munging the
active DB connection.

With this revision, CRM_Contact_BAO_GroupTest uses the same DB connection as
everything else.

The failure was reproducible using this command:

```
env CIVICRM_UF=UnitTests PHPUNIT_TESTS="CRM_Contact_BAO_GroupTest::testGroupData CRM_Core_TransactionTest::testBasicCommit" phpunit4  tests/phpunit/EnvTests.php
```
CRM/Core/DAO.php
CRM/Utils/File.php
tests/phpunit/CRM/Contact/BAO/GroupTest.php