You are here

public function MultifieldTestBase::saveTestEntity in Multifield 7.2

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

File

tests/MultifieldTestBase.test, line 20

Class

MultifieldTestBase

Code

public function saveTestEntity($entity) {
  $this
    ->submitEntity('test_entity', $entity);

  // Save the entity
  field_test_entity_save($entity);

  // Reload the entity.
  return field_test_entity_test_load($entity->ftid);
}