protected function SchedulerApiTestCase::createUnapprovedNode in Scheduler 7
Creates a new node that is not approved by the CEO.
The node has a publication date in the past to make sure it will be included in the next scheduling run.
Return value
object A node object.
1 call to SchedulerApiTestCase::createUnapprovedNode()
- SchedulerApiTestCase::testAllowedPublishing in tests/
scheduler_api.test - Tests hook_scheduler_allow().
File
- tests/
scheduler_api.test, line 84 - Tests for the Scheduler API.
Class
- SchedulerApiTestCase
- Tests to cover the Scheduler API functions.
Code
protected function createUnapprovedNode() {
$settings = array(
'status' => 0,
'publish_on' => strtotime('-1 day'),
'type' => 'scheduler_test',
);
return $this
->drupalCreateNode($settings);
}