Every pipeline on the 8.x-1.x branch fails with the same 3 errors and 1 failure, regardless of what the MR changes — see for example job 10896707 on #3602805: Automated Drupal 12 compatibility fixes for search_api_sorts 1.x-dev. Verified on Drupal 11.4.5 / PHP 8.3.30.

  1. SearchApiSortsKernelTest (2 errors): "Could not retrieve data definition for field 'Body' on index 'Test index'". The test installs the config of search_api_test_db, but is missing the module that provides the body field. search_api's own kernel tests install search_api_test_example_content for this exact reason.
  2. SearchApiSortsUpdate8102Test (1 error): "Unknown column 'alias' in 'INSERT INTO'" on the {router} table. SearchApiSortsUpdateBase::setUp() rebuilds the routes before the core updates run, but the older drupal-10.3.0.filled.standard.php.gz fixture is missing this column (which was added by system_update_11201).
  3. SearchApiSortsUpdate8103Test (1 failure): Expects 'Title', gets 'Titre'. Core only stores English config overrides when locale.settings.translate_english is TRUE. Otherwise, the override is silently dropped, so search_api_sorts_update_8103() never sees it.

Proposed resolution

  1. Add field, text, and search_api_test_example_content to the kernel test's modules, and install the example content config before search_api_test_db.
  2. Use the drupal-11.3.0.filled.standard.php.gz fixture when core ships it, falling back to 10.3.0.
  3. Set locale.settings.translate_english to TRUE in the update test's own database fixture.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

peri22 created an issue. See original summary.

peri22’s picture

Status: Active » Needs review

MR !18 implements the three changes above. With them the whole suite passes on Drupal 11.4.5 / PHP 8.3.30: 20 tests, 782 assertions, 0 failures.

jeroent made their first commit to this issue’s fork.

  • jeroent committed 95259030 on 8.x-1.x authored by peri22
    fix: #3618059 Test suite fails on 8.x-1.x with current Drupal core
    
    By:...
jeroent’s picture

Status: Needs review » Fixed

Merged to 8.x-1.x. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.