function EntityFieldManagerTest::testGetBaseFieldDefinitions
Tests the getBaseFieldDefinitions() method.
@covers ::getBaseFieldDefinitions
      
    
@covers ::buildBaseFieldDefinitions
      
    
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFieldManagerTest.php, line 226  
Class
- EntityFieldManagerTest
 - @coversDefaultClass \Drupal\Core\Entity\EntityFieldManager[[api-linebreak]] @group Entity
 
Namespace
Drupal\Tests\Core\EntityCode
public function testGetBaseFieldDefinitions() : void {
  $field_definition = $this->setUpEntityWithFieldDefinition();
  $expected = [
    'id' => $field_definition,
  ];
  $this->assertSame($expected, $this->entityFieldManager
    ->getBaseFieldDefinitions('test_entity_type'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.