You are here

private function LayoutSelectionFieldTest::assertFieldExists in Layout builder library 8

Asserts that the layout_selection field exists on the test node type.

1 call to LayoutSelectionFieldTest::assertFieldExists()
LayoutSelectionFieldTest::testFieldPersistsForMultipleDisplays in tests/src/Kernel/LayoutSelectionFieldTest.php
Tests that the layout_selection persists if multiple displays are using it.

File

tests/src/Kernel/LayoutSelectionFieldTest.php, line 72

Class

LayoutSelectionFieldTest
Tests the internal handling of the layout_selection field.

Namespace

Drupal\Tests\layout_library\Kernel

Code

private function assertFieldExists() {
  $field = FieldConfig::loadByName('node', 'test', 'layout_selection');
  $this
    ->assertInstanceOf(FieldConfigInterface::class, $field);
}