/** * @covers ::getType */ public function testGetType() { // Ensure that FieldConfig::getType() is not delegated to // FieldStorage. $this->entityManager->expects($this->never())->method('getFieldStorageDefinitions'); $this->fieldStorage->expects($this->never())->method('getType'); $field = new FieldConfig(array('field_name' => $this->fieldStorage->getName(), 'entity_type' => 'test_entity_type', 'bundle' => 'test_bundle', 'field_type' => 'test_field'), $this->entityTypeId); $this->assertEquals('test_field', $field->getType()); }