protected function LayoutBuilderQuickEditTest::assertEntityInstanceFieldMarkup in Drupal 9
Same name and namespace in other branches
- 10 core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::assertEntityInstanceFieldMarkup()
Asserts all in-place editable fields with markup expectations.
@todo https://www.drupal.org/project/drupal/issues/3178758 Remove deprecation layer and add array typehint.
Parameters
array $expected_field_attributes: Must describe the expected markup attributes for all given in-place editable fields.
Overrides QuickEditJavascriptTestBase::assertEntityInstanceFieldMarkup
File
- core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php, line 204
Class
- LayoutBuilderQuickEditTest
- Tests that Layout Builder functions with Quick Edit.
Namespace
Drupal\Tests\quickedit\FunctionalJavascriptCode
protected function assertEntityInstanceFieldMarkup($expected_field_attributes) {
if (func_num_args() === 4) {
$expected_field_attributes = func_get_arg(3);
@trigger_error('Calling ' . __METHOD__ . '() with 4 arguments is deprecated in drupal:9.1.0 and will throw an error in drupal:10.0.0. See https://www.drupal.org/project/drupal/issues/3037436', E_USER_DEPRECATED);
}
parent::assertEntityInstanceFieldMarkup($this
->replaceLayoutBuilderFieldIdKeys($expected_field_attributes));
}