public function BaseFieldDefinitionTest::testFieldType in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php \Drupal\Tests\Core\Entity\BaseFieldDefinitionTest::testFieldType()
Tests field type methods.
@covers ::getType
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ BaseFieldDefinitionTest.php, line 114
Class
- BaseFieldDefinitionTest
- Unit test for BaseFieldDefinition.
Namespace
Drupal\Tests\Core\EntityCode
public function testFieldType() {
$definition = BaseFieldDefinition::create($this->fieldType);
$this
->assertEquals($this->fieldType, $definition
->getType());
}