public function MultifieldUnitTestCase::testEntityLoad in Multifield 7
Same name and namespace in other branches
- 7.2 tests/MultifieldUnitTestCase.test \MultifieldUnitTestCase::testEntityLoad()
File
- tests/
MultifieldUnitTestCase.test, line 414
Class
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.
}