You are here

public function ContentLoaderTest::testPopulateFieldProcess in YAML Content 8

@covers ::populateField

File

tests/src/Unit/ContentLoader/ContentLoaderTest.php, line 125

Class

ContentLoaderTest
Test generic functionality of the ContentLoader class.

Namespace

Drupal\Tests\yaml_content\Unit\ContentLoader

Code

public function testPopulateFieldProcess() {
  $field_definition = new BaseFieldDefinition();
  $field_definition
    ->setCardinality(1);
  $field = new FieldItemList($field_definition, 'foobar');
  $field_data = [
    [],
  ];
  $this
    ->markTestIncomplete('We cannot easily test processing is triggered because we cannot inject a Plugin Manager yet.');
  $this->contentLoader
    ->populateField($field, $field_data);
}