private function EntityReferenceReferenceRemain::verifyReferenceRemain in Entityreference prepopulate 7
Verify the node reference remained.
1 call to EntityReferenceReferenceRemain::verifyReferenceRemain()
- EntityReferenceReferenceRemain::testScenarioReference in ./
entityreference_prepopulate.test - Set various settings of the entity reference prepopulate settings.
File
- ./
entityreference_prepopulate.test, line 235
Class
Code
private function verifyReferenceRemain() {
// Loading a fresh node object from the DB.
$node = node_load($this->node1->nid, NULL, TRUE);
$wrapper = entity_metadata_wrapper('node', $node);
$this
->assertTrue($wrapper->node_ref
->getIdentifier() == $this->node2->nid, 'The reference from node 1 to node 2 remained.');
}