You are here

protected function LayoutBuilderQuickEditTest::assertEntityInstanceFieldStates in Drupal 8

Asserts all FieldModels for the given entity instance.

Parameters

string $entity_type_id: The entity type ID.

int $entity_id: The entity ID.

int $entity_instance_id: The entity instance ID. (Instance on the page.)

array $expected_field_states: Must describe the expected state of all in-place editable fields of the given entity instance.

Overrides QuickEditJavascriptTestBase::assertEntityInstanceFieldStates

1 call to LayoutBuilderQuickEditTest::assertEntityInstanceFieldStates()
LayoutBuilderQuickEditTest::assertQuickEditInit in core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php
Asserts that Quick Edit is initialized on the node view correctly.

File

core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php, line 198

Class

LayoutBuilderQuickEditTest
Tests that Layout Builder functions with Quick Edit.

Namespace

Drupal\Tests\layout_builder\FunctionalJavascript

Code

protected function assertEntityInstanceFieldStates($entity_type_id, $entity_id, $entity_instance_id, array $expected_field_states) {
  parent::assertEntityInstanceFieldStates($entity_type_id, $entity_id, $entity_instance_id, $this
    ->replaceLayoutBuilderFieldIdKeys($expected_field_states));
}