From 4797a2d272f52652310826ae95d153e1bf016b45 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 4 Aug 2021 10:58:48 +1000 Subject: [PATCH] [NFC] Do a proper tear down of fts in QueryFormatterTest --- tests/phpunit/CRM/Utils/QueryFormatterTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/phpunit/CRM/Utils/QueryFormatterTest.php b/tests/phpunit/CRM/Utils/QueryFormatterTest.php index 96efb14ac6..3a83e84fa3 100644 --- a/tests/phpunit/CRM/Utils/QueryFormatterTest.php +++ b/tests/phpunit/CRM/Utils/QueryFormatterTest.php @@ -43,6 +43,15 @@ class CRM_Utils_QueryFormatterTest extends CiviUnitTestCase { } } + public static function tearDown(): void { + $idx = new CRM_Core_InnoDBIndexer(FALSE, [ + 'civicrm_contact' => [ + ['first_name', 'last_name'], + ], + ]); + $idx->fixSchemaDifferences(); + } + public static function tearDownAfterClass(): void { CRM_Core_DAO::executeQuery('DROP TABLE IF EXISTS civicrm_fts_example'); parent::tearDownAfterClass(); -- 2.25.1