protected function PMPAPIPushWebTestCase::createNode in Public Media Platform API Integration 7
Creates a node.
Parameters
$settings: Any specific settings for the new node.
4 calls to PMPAPIPushWebTestCase::createNode()
- PMPAPIPushWebTestCase::testPmpAPIPushNodeWithRelatedImage in pmpapi_push/
tests/ pmpapi_push.test - Pushes node (with attached image) to the PMP.
- PMPAPIPushWebTestCase::testPmpAPIPushPushNode in pmpapi_push/
tests/ pmpapi_push.test - Pushes a node to the PMP.
- PMPAPIPushWebTestCase::testPmpAPIPushQueueDelete in pmpapi_push/
tests/ pmpapi_push.test - Pushes a node, fails to delete, queues doc, succeeds.
- PMPAPIPushWebTestCase::testPmpAPIPushStopDeleteAttempt in pmpapi_push/
tests/ pmpapi_push.test - Pushes a node, and then tries to delete three times (with bad API credentials).
File
- pmpapi_push/
tests/ pmpapi_push.test, line 247
Class
- PMPAPIPushWebTestCase
- Tests the functionality of the PMPAPI push module.
Code
protected function createNode($settings = array()) {
$settings += array(
'title' => 'PMPAPI Simpletest test: ' . date('G:i:s'),
'type' => $this->nodetype,
'body' => array(
LANGUAGE_NONE => array(
0 => array(
'value' => $this
->randomName(32),
'format' => filter_default_format(),
),
),
),
);
$node = $this
->drupalCreateNode($settings);
return $node;
}