1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Search Index: Fixed SQL error when indexing large pages

Due to hitting statement placeholder limits (typically 65k)
when inserting index terms for single page.

Added test to cover.
Also added skipped tests for tests we don't always want to run.
For #5322
This commit is contained in:
Dan Brown
2024-12-11 15:53:57 +00:00
parent 5632fef621
commit 509af2463d
3 changed files with 38 additions and 6 deletions

View File

@ -27,8 +27,10 @@ class LanguageTest extends TestCase
}
// Not part of standard phpunit test runs since we sometimes expect non-added langs.
public function do_test_locales_all_have_language_dropdown_entry()
public function test_locales_all_have_language_dropdown_entry()
{
$this->markTestSkipped('Only used when checking language inclusion');
$dropdownLocales = array_keys(trans('settings.language_select', [], 'en'));
sort($dropdownLocales);
sort($this->langs);