diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php index 2ef9124f56..5fc3ee6c57 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\layout_builder\Functional; +use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Tests\BrowserTestBase; use Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait; @@ -44,9 +45,19 @@ protected function setUp() { public function testTaxonomyLayoutBuilderInteraction() { // Create two nodes. $vocabulary = $this->createVocabulary(); + EntityViewDisplay::create([ + 'targetEntityType' => 'taxonomy_term', + 'bundle' => $vocabulary->id(), + 'mode' => 'default', + 'status' => TRUE, + ]) + ->enableLayoutBuilder() + ->save(); + $term = $this->createTerm($vocabulary); $this->drupalGet($term->toUrl()); $this->assertSession()->statusCodeEquals(200); + $this->assertNotEmpty($this->cssSelect('.layout--onecol')); } }