public function LayoutBuilderThemeSuggestionsTest::testLayoutListSuggestion in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/tests/src/Functional/LayoutBuilderThemeSuggestionsTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderThemeSuggestionsTest::testLayoutListSuggestion()
Tests alterations of the layout list via preprocess functions.
File
- core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderThemeSuggestionsTest.php, line 60
Class
- LayoutBuilderThemeSuggestionsTest
- Tests template suggestions.
Namespace
Drupal\Tests\layout_builder\FunctionalCode
public function testLayoutListSuggestion() {
$page = $this
->getSession()
->getPage();
$assert_session = $this
->assertSession();
$this
->drupalGet('admin/structure/types/manage/bundle_with_section_field/display/default/layout');
$page
->clickLink('Add section');
$assert_session
->pageTextContains('layout_builder_theme_suggestions_test_preprocess_item_list__layouts');
}