CiviUnitTestCase - Inline method '_populateDB()'
authorTim Otten <totten@civicrm.org>
Thu, 15 Dec 2022 08:31:45 +0000 (00:31 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 16 Dec 2022 05:22:13 +0000 (21:22 -0800)
commit8cfba744faab400d5cf72cc2fad328f787127214
treee956d5f5b49be14d93946073e43c7e3a247772db
parentdd6530f69fec27d079cd192b3e174d8691a12af7
CiviUnitTestCase - Inline method '_populateDB()'

At this point, it's just a bunch of verbosely written conditions that
appear to be trueisms;

* When called via `setUpBeforeClass()`, the `$perClass` flag is TRUE,
  so it does the reset.
* When called via `setUp()`, the `$object` flag is non-null,
  so it does the reset.

At this point, the actual reset bit is 1-line. Easier to just call that.
tests/phpunit/CiviTest/CiviUnitTestCase.php