diff --git a/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php b/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php index c19c658788..edde3f9822 100644 --- a/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php +++ b/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php @@ -116,8 +116,12 @@ public function testIsSatisfiedBy($expected, ContextDefinition $requirement, Con 'test_config' => new EntityType(['id' => 'test_config']), 'test_content' => new EntityType(['id' => 'test_content']), ]); - $this->entityTypeBundleInfo->getBundleInfo('test_config')->willReturn([]); - $this->entityTypeBundleInfo->getBundleInfo('test_content')->willReturn([]); + $this->entityTypeBundleInfo->getBundleInfo('test_config')->willReturn([ + 'test_config' => ['label' => 'test_config'], + ]); + $this->entityTypeBundleInfo->getBundleInfo('test_content')->willReturn([ + 'test_content' => ['label' => 'test_content'], + ]); $this->assertRequirementIsSatisfied($expected, $requirement, $definition, $value); }