You are here

protected function SchedulerApiTestCase::approveNode in Scheduler 7

Approves a node for publication.

Parameters

int $nid: The nid of the node to approve.

1 call to SchedulerApiTestCase::approveNode()
SchedulerApiTestCase::testAllowedPublishing in tests/scheduler_api.test
Tests hook_scheduler_allow().

File

tests/scheduler_api.test, line 99
Tests for the Scheduler API.

Class

SchedulerApiTestCase
Tests to cover the Scheduler API functions.

Code

protected function approveNode($nid) {
  $node = node_load($nid, NULL, TRUE);
  $node->field_scheduler_test_approved[$node->language][0]['value'] = TRUE;
  node_save($node);
}