Undefined array key "gc__taxonomy_term" when running PHPUnit test

Created on 19 January 2023, about 2 years ago
Updated 21 March 2023, about 2 years ago

Hey people!

Over in LocalGov Drupal Microsites land, we've got some automated tests that are failing with the error:

Undefined array key "gc__taxonomy_term"

I'm trying to work out if this is something to do with our configuration or this module.

It gets triggered from:

https://git.drupalcode.org/project/drupal/-/blob/9.5.2/core/modules/view...

So something to do with the relationship.

Any suggestions how I can track down the cause?

The full callstack is:

There was 1 error:

1) Drupal\Tests\localgov_microsites_events\Functional\MicrositeEventContentTest::testMicrositeEventsContent
Undefined array key "gc__taxonomy_term"

/app/web/core/modules/views/src/Plugin/views/HandlerBase.php:717
/app/web/core/modules/views/src/Plugin/views/filter/Bundle.php:88
/app/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php:894
/app/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php:922
/app/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php:958
/app/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:71
/app/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:89
/app/web/core/modules/views/src/Entity/View.php:282
/app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:320
/app/web/core/modules/views/src/Entity/View.php:292
/app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:562
/app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:517
/app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:253
/app/web/core/lib/Drupal/Core/Entity/EntityBase.php:339
/app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
/app/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:392
/app/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:263
/app/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:167
/app/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:75
/app/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:327
/app/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
/app/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:474
/app/web/core/tests/Drupal/Tests/BrowserTestBase.php:545
/app/web/core/tests/Drupal/Tests/BrowserTestBase.php:364
/app/web/modules/contrib/localgov_microsites_group/modules/localgov_microsites_events/tests/src/Functional/MicrositeEventContentTest.php:59
/app/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom Finn Lewis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024