diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php new file mode 100644 index 0000000000..cd41ce0af7 --- /dev/null +++ b/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php @@ -0,0 +1,53 @@ +assertSession(); + + // Prime the block definition cache. + $this->container->get('plugin.manager.block')->getDefinitions(); + + $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()); + $assert_session->statusCodeEquals(200); + $this->assertNotEmpty($this->cssSelect('.layout--onecol')); + $assert_session->pageTextContains($term->getDescription()); + } + +}