Civi\Test - Fix leak in active module-list for headless test
authorTim Otten <totten@civicrm.org>
Tue, 12 Jul 2022 02:00:59 +0000 (19:00 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 12 Jul 2022 03:25:00 +0000 (20:25 -0700)
commit3f0d4748e4a58a5d146a4632d6751584eb1bffd6
tree68a0c1a27c7078048d2d6e5fae63d887b61f4c49
parentdb1c57fb155f6b3c35db4a06704e12a87ef782c1
Civi\Test - Fix leak in active module-list for headless test

Steps to reproduce
------------------

Observed on a `dmaster` build while running these steps:

* Run civix's `make-example.sh`
* Or just run some subset involving a headless test, eg
   * civix generate:test --template=headless 'Civi\Civiexample\BarTest'
   * cv api extension.install key=$EXMODULE
   * phpunit8 ./tests/phpunit/Civi/Civiexample/BarTest.php

Before
------

Fatal error: Uncaught Error: Class 'Civi\Api4\SearchSegment' not found in
/home/totten/bknix/build/dmaster/web/sites/all/modules/civicrm/ext/search_kit/Civi/Api4/Service/Spec/Provider/SearchSegmentExtraFieldProvider.php
on line 52

After
-----

Test runs
CRM/Core/I18n.php
Civi/Test.php
Civi/Test/Data.php
setup/plugins/installDatabase/BootstrapCivi.civi-setup.php
setup/plugins/installDatabase/Preboot.civi-setup.php