You are here

public function MultifieldTestBase::submitEntity in Multifield 7

Same name and namespace in other branches
  1. 7.2 tests/MultifieldTestBase.test \MultifieldTestBase::submitEntity()
1 call to MultifieldTestBase::submitEntity()
MultifieldTestBase::saveTestEntity in tests/MultifieldTestBase.test

File

tests/MultifieldTestBase.test, line 13

Class

MultifieldTestBase

Code

public function submitEntity($entity_type, $entity) {

  // Invoke the submission hooks which removes empty field values.
  $form = array(
    '#parents' => array(),
  );
  $form_state = array(
    'values' => array(),
  );
  field_attach_submit($entity_type, $entity, $form, $form_state);
}