diff --git a/tests/php/Search/DatabaseSearchEngineTest.php b/tests/php/Search/DatabaseSearchEngineTest.php index 22ca9383..e4046304 100644 --- a/tests/php/Search/DatabaseSearchEngineTest.php +++ b/tests/php/Search/DatabaseSearchEngineTest.php @@ -13,6 +13,11 @@ class DatabaseSearchEngineTest extends SapphireTest { protected $usesDatabase = true; + /** + * @var bool InnoDB doesn't update indexes until transactions are committed + */ + protected $usesTransactions = false; + public static function setUpBeforeClass() { parent::setUpBeforeClass(); @@ -46,5 +51,4 @@ class DatabaseSearchEngineTest extends SapphireTest $results->First()->Title ); } - } diff --git a/tests/php/Search/SearchFormTest.php b/tests/php/Search/SearchFormTest.php index 65932e96..96d47219 100644 --- a/tests/php/Search/SearchFormTest.php +++ b/tests/php/Search/SearchFormTest.php @@ -44,6 +44,11 @@ class ZZZSearchFormTest extends FunctionalTest */ protected $mockController; + /** + * @var bool InnoDB doesn't update indexes until transactions are committed + */ + protected $usesTransactions = false; + public function waitUntilIndexingFinished() { $schema = DB::get_schema();