| 1 layout.test | public LayoutFlexibleTemplateTest::testCustomLayoutType() |
Basic tests to ensure custom layout types are functioning.
File
- core/
modules/ layout/ tests/ layout.test, line 3865 - Tests for the Layout module.
Class
- LayoutFlexibleTemplateTest
- Tests the interface for flexible layouts.
Code
public function testCustomLayoutType() {
// Load a page from layout_test.module that provides a custom layout with a
// block inserted.
// @see layout_test_custom_layout_type_test_page()
$this->backdropGet('custom-layout-type-test-page');
$this->assertText('This is a simple text block to test custom layout types.', 'Custom layout type inside of page content loaded correctly.');
// Ensure custom layout types do not show up in the core layout template
// listing.
$this->backdropGet('admin/structure/layouts/settings');
$this->assertNoText('Custom Layout Type Test', 'Custom layout type not shown on core layout template listing.');
}