public function LayoutBuilderThemeSuggestionsTest::testLayoutListSuggestion in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/Functional/LayoutBuilderThemeSuggestionsTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderThemeSuggestionsTest::testLayoutListSuggestion()
- 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 61
Class
- LayoutBuilderThemeSuggestionsTest
- Tests template suggestions.
Namespace
Drupal\Tests\layout_builder\FunctionalCode
public function testLayoutListSuggestion() {
$page = $this
->getSession()
->getPage();
$assert_session = $this
->assertSession();
$this
->drupalGet('node/1/layout');
$page
->clickLink('Add section');
$assert_session
->pageTextContains('layout_builder_theme_suggestions_test_preprocess_item_list__layouts');
}