public function EntityTypeInfoTest::testEntityBaseFieldProvider in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::testEntityBaseFieldProvider()
- 9 core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::testEntityBaseFieldProvider()
Tests entity base field provider.
File
- core/
modules/ content_moderation/ tests/ src/ Kernel/ EntityTypeInfoTest.php, line 134
Class
- EntityTypeInfoTest
- @coversDefaultClass \Drupal\content_moderation\EntityTypeInfo
Namespace
Drupal\Tests\content_moderation\KernelCode
public function testEntityBaseFieldProvider() {
$this
->enableModeration('entity_test_mulrev', 'entity_test_mulrev');
$this->container
->get('state')
->set('entity_test.field_test_item', TRUE);
$field_definitions = $this->entityFieldManager
->getFieldDefinitions('entity_test_mulrev', 'entity_test_mulrev');
$this
->assertEquals('entity_test', $field_definitions['field_test_item']
->getProvider());
}