You are here

protected function PMPAPIPullWebTestCase::createFields in Public Media Platform API Integration 7

Creates fields.

Parameters

$fields: The fields to be created.

File

pmpapi_pull/tests/pmpapi_pull.test, line 262

Class

PMPAPIPullWebTestCase
Tests the functionality of the PMPAPI pull module.

Code

protected function createFields($fields) {
  foreach ($fields as $field) {
    field_create_field($field);
  }
}