You are here

public function CerBasicTestCase::testUpdateDereference in Corresponding Entity References 7.3

File

tests/CerBasicTestCase.test, line 95

Class

CerBasicTestCase

Code

public function testUpdateDereference() {

  // Dereference the node from the user.
  $this->author->field_pages = array();
  user_save($this->author);

  // Reload $this->node from the database so we get the latest field values.
  $this
    ->assertNull($this
    ->reload('node', $this->node)->field_author
    ->value());
}