Provides a schematic field model for mapping data
Author: Nerds & Company
Exemplo n.º 1
0
 /**
  * @covers ::build
  * @dataProvider provideHookedFieldTypes
  *
  * @param string $fieldType
  * @param string $expectedClassName
  * @param array  $hookCallResults
  */
 public function testBuildWithFieldHook($fieldType, $expectedClassName, array $hookCallResults)
 {
     $this->setMockPluginsService($hookCallResults);
     $fieldFactory = new FieldFactory();
     $schematicFieldModel = $fieldFactory->build($fieldType);
     $this->assertInstanceOf($expectedClassName, $schematicFieldModel);
 }