function FieldDefinitionTest::testFieldName
@covers ::getName
      
    
@dataProvider factoryTypeProvider
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Entity/ FieldDefinitionTest.php, line 105  
Class
- FieldDefinitionTest
 - Unit test for the FieldDefinition class.
 
Namespace
Drupal\Tests\Core\EntityCode
public function testFieldName($factory_name) : void {
  $definition = $this->initializeFieldUsingFactory($factory_name);
  $this->assertEquals($this->storageDefinition
    ->getName(), $definition->getName());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.