SearchExcerptTestCase cannot be a UnitTest because it tries to invoke preprocess handlers (via search_simplify_excerpt_match) that need a hit to the db on module_list.
Attached patch converts SearchExcerptTestCase to a DrupalWebTestCase and corrects the snippet test on $longtext.
While similar warnings (Illegal string offset 'filename' on module_list 74) occur on SearchExpressionInsertExtractTestCase the root cause there is a bug in how module_list handles its fixed_list parameter. This is being discussed in #1563620: All unit tests blow up with a fatal error.
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
fix_search_excerpt_test.patch | 1.33 KB | Idle | PASSED: [[SimpleTest]]: [MySQL] 40,334 pass(es). | View details | Re-test |