You are here

protected function LayoutBuilderQuickEditTest::assertEntityInstanceFieldStates in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::assertEntityInstanceFieldStates()

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/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php
Asserts that Quick Edit is initialized on the node view correctly.

File

core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php, line 197

Class

LayoutBuilderQuickEditTest
Tests that Layout Builder functions with Quick Edit.

Namespace

Drupal\Tests\quickedit\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));
}