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..5fc3ee6c57 --- /dev/null +++ b/core/modules/layout_builder/tests/src/Functional/LayoutTaxonomyTest.php @@ -0,0 +1,63 @@ +drupalPlaceBlock('local_tasks_block'); + } + + /** + * Tests layout builder interaction with taxonomy. + */ + 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')); + } + +}