You are here

public function WorkbenchModerationExternalNodeUpdateTestCase::refreshNode in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 tests/external_node_update.test \WorkbenchModerationExternalNodeUpdateTestCase::refreshNode()

Refreshes the test node so it matches the actual state in the database.

2 calls to WorkbenchModerationExternalNodeUpdateTestCase::refreshNode()
WorkbenchModerationExternalNodeUpdateTestCase::resaveNode in tests/external_node_update.test
Resave the node in an external module.
WorkbenchModerationExternalNodeUpdateTestCase::testNodeSave in tests/external_node_update.test
Tests if nodes can be moderated by third party modules.

File

tests/external_node_update.test, line 167
Tests moderation states when nodes are (un)published by other modules.

Class

WorkbenchModerationExternalNodeUpdateTestCase
@file Tests moderation states when nodes are (un)published by other modules.

Code

public function refreshNode() {
  $this->node = node_load($this->node->nid, NULL, TRUE);
}