You are here

public function EntityLegalTestCase::getUncachedEntity in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 tests/entity_legal.common.test \EntityLegalTestCase::getUncachedEntity()

Get an entity bypassing static and db cache.

Parameters

string $entity_type: The type of entity to get.

string $entity_id: The ID or name to load the entity using.

Return value

object The retrieved entity.

5 calls to EntityLegalTestCase::getUncachedEntity()
EntityLegalDocumentAcceptanceTestCase::testSubmissionForm in tests/entity_legal.acceptance.test
Test that user has the ability to agree to legal documents.
EntityLegalDocumentTestCase::testCreateForm in tests/entity_legal.document.test
Test the functionality of the create form.
EntityLegalDocumentTestCase::testEditForm in tests/entity_legal.document.test
Test the functionality of the edit form.
EntityLegalDocumentVersionTestCase::testCreateForm in tests/entity_legal.version.test
Test the functionality of the create form.
EntityLegalDocumentVersionTestCase::testEditForm in tests/entity_legal.version.test
Test the functionality of the edit form.

File

tests/entity_legal.common.test, line 44
Common test class file.

Class

EntityLegalTestCase
Common Simpletest class for all legal tests.

Code

public function getUncachedEntity($entity_type, $entity_id) {
  $entities = entity_load($entity_type, array(
    $entity_id,
  ), array(), TRUE);
  return array_pop($entities);
}