function entity_test_load

Loads a test entity.

Parameters

int $id: A test entity ID.

bool $reset: A boolean indicating that the internal cache should be reset.

Return value

Drupal\entity_test\Plugin\Core\Entity\EntityTest The loaded entity object, or FALSE if the entity cannot be loaded.

4 calls to entity_test_load()
EntityApiTest::testCRUD in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityApiTest.php
Tests basic CRUD functionality of the Entity API.
EntityRevisionsTest::testRevisions in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityRevisionsTest.php
Check node revision related operations.
EntityTranslationTest::testMultilingualProperties in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php
Tests multilingual properties.
EntityUUIDTest::testCRUD in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUUIDTest.php
Tests UUID generation in entity CRUD operations.

File

drupal/core/modules/system/tests/modules/entity_test/entity_test.module, line 114
Test module for the entity API providing an entity type for testing.

Code

function entity_test_load($id, $reset = FALSE) {
  return entity_load('entity_test', $id, $reset);
}