You are here

function NodesInBlock::_updateNode in Nodes In Block 6

Helper function to update an existing node.

1 call to NodesInBlock::_updateNode()
NodesInBlock::testNodeSubmissions in ./nodesinblock.test
Test submitting of nodes and see if they appear in blocks and how they are rendered.

File

./nodesinblock.test, line 83
Tests for Nodes in block

Class

NodesInBlock
@file Tests for Nodes in block

Code

function _updateNode($nid = 1, $edit = array()) {
  $this
    ->drupalPost('node/' . $nid . '/edit', $edit, t('Save'));
  $result = db_result(db_query("SELECT nid FROM {nodesinblock} WHERE nid = %d", $nid));
  $this
    ->assertTrue($result, 'Node ' . $nid . ' updated in nodesinblock table', 'Node submission');
}