mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
BUG Tests need to call bind_manipulation_capture manually
This commit is contained in:
parent
e5bf1473d6
commit
4766794cea
@ -57,6 +57,8 @@ class SearchUpdaterTest extends SapphireTest {
|
||||
if (self::$index === null) self::$index = singleton(get_class($this).'_Index');
|
||||
else self::$index->reset();
|
||||
|
||||
SearchUpdater::bind_manipulation_capture();
|
||||
|
||||
FullTextSearch::force_index_list(self::$index);
|
||||
SearchUpdater::clear_dirty_indexes();
|
||||
}
|
||||
|
@ -28,6 +28,8 @@ class SearchVariantVersionedTest extends SapphireTest {
|
||||
|
||||
if (self::$index === null) self::$index = singleton('SearchVariantVersionedTest_Index');
|
||||
|
||||
SearchUpdater::bind_manipulation_capture();
|
||||
|
||||
FullTextSearch::force_index_list(self::$index);
|
||||
SearchUpdater::clear_dirty_indexes();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user