public static function FieldLayoutEntityDisplayTest::assertEntityValues in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field_layout/tests/src/Kernel/FieldLayoutEntityDisplayTest.php \Drupal\Tests\field_layout\Kernel\FieldLayoutEntityDisplayTest::assertEntityValues()
- 9 core/modules/field_layout/tests/src/Kernel/FieldLayoutEntityDisplayTest.php \Drupal\Tests\field_layout\Kernel\FieldLayoutEntityDisplayTest::assertEntityValues()
Asserts than an entity has the correct values.
@internal
Parameters
array $expected: The expected values.
array $values: The actual values.
string $message: (optional) An error message.
File
- core/
modules/ field_layout/ tests/ src/ Kernel/ FieldLayoutEntityDisplayTest.php, line 187
Class
- FieldLayoutEntityDisplayTest
- @coversDefaultClass \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait @group field_layout
Namespace
Drupal\Tests\field_layout\KernelCode
public static function assertEntityValues(array $expected, array $values, string $message = '') : void {
static::assertArrayHasKey('uuid', $values);
unset($values['uuid']);
static::assertEquals($expected, $values, $message);
}