You are here

public function MultifieldUnitTestCase::testEntityLoad in Multifield 7.2

Same name and namespace in other branches
  1. 7 tests/MultifieldUnitTestCase.test \MultifieldUnitTestCase::testEntityLoad()

File

tests/MultifieldUnitTestCase.test, line 414

Class

MultifieldUnitTestCase

Code

public function testEntityLoad() {
  try {
    entity_load('multifield', FALSE, array(
      'type' => 'test',
    ));
    $this
      ->fail("Cannot run entity_load('multifield') with conditions.");
  } catch (InvalidArgumentException $e) {
    $this
      ->pass("Cannot run entity_load('multifield') with conditions.");
  }
  $results = entity_load('multifield', FALSE);
  $this
    ->assertIdentical($results, array());
  $results = entity_load('multifield', array(
    1,
  ));
  $this
    ->assertIdentical($results, array());

  // @todo Expand this coverage to actually load real multifield entities.
}