Test - issue - fail when running just v3
I've been trying to get v3 api tests run as a directory locally - the tests run in isolation but not at the directory level (ie this command) - in order to try to figure out why https://github.com/civicrm/civicrm-core/pull/20243 passes in isolation but not as part of a suite.
I've found & fixed a few setup/teardown issues but am a bit stumped on the latest one. This ticket is to try to get help (from @totten ) on what to do about the below test where $_ENV seems to be undefined when running in conjunction with at least some other apiv3 tests
My command to run them is....
[docker-compose://[/home/eileen/dev/fundraising-dev/docker-compose.yml]:civicrm/]:php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=172.17.0.1 /srv/civi-sites/wmff/vendor/phpunit/phpunit/phpunit --configuration /srv/civi-sites/dmaster/web/sites/all/modules/civicrm/phpunit.xml.dist /srv/civi-sites/dmaster/web/sites/all/modules/civicrm/tests/phpunit/api/v3 --teamcity
Exception : CRM_Core_Exception: "ExternalBatch cannot detect environment: $_ENV is missing. (Tip: Set variables_order=EGPCS in php.ini.)"
#0 /srv/civi-sites/dmaster/web/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php(569): Civi\API\ExternalBatch->__construct((Array:2))
#1 /srv/civi-sites/dmaster/web/sites/all/modules/civicrm/tests/phpunit/api/v3/JobProcessMailingTest.php(460): CiviUnitTestCase->createExternalAPI()
#2 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/Framework/TestCase.php(1154): api_v3_JobProcessMailingTest->testConcurrency((Array:9), (Array:2), 4)
#3 /srv/civi-sites/dmaster/web/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php(228): PHPUnit\Framework\TestCase->runTest()
#4 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/Framework/TestCase.php(842): CiviUnitTestCase->runTest()
#5 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/Framework/TestResult.php(693): PHPUnit\Framework\TestCase->runBare()
#6 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/Framework/TestCase.php(796): PHPUnit\Framework\TestResult->run(Object(api_v3_JobProcessMailingTest))
#7 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#8 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#9 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#10 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#11 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), (Array:64), TRUE)
#12 /srv/civi-sites/wmff/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run((Array:5), TRUE)
#13 /srv/civi-sites/wmff/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#14 {main}
/srv/civi-sites/dmaster/web/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php:232
/srv/civi-sites/wmff/vendor/phpunit/phpunit/phpunit:61