public function EntityFieldManagerTest::testGetBaseFieldDefinitions in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\EntityFieldManagerTest::testGetBaseFieldDefinitions()
Tests the getBaseFieldDefinitions() method.
@covers ::getBaseFieldDefinitions @covers ::buildBaseFieldDefinitions
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFieldManagerTest.php, line 234 - Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
Class
- EntityFieldManagerTest
- @coversDefaultClass \Drupal\Core\Entity\EntityFieldManager @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testGetBaseFieldDefinitions() {
$field_definition = $this
->setUpEntityWithFieldDefinition();
$expected = [
'id' => $field_definition,
];
$this
->assertSame($expected, $this->entityFieldManager
->getBaseFieldDefinitions('test_entity_type'));
}