You are here

protected function PMPAPIPermissionsWebTestCase::createNode in Public Media Platform API Integration 7

Creates a node.

Parameters

$settings: Any specific settings for the new node.

1 call to PMPAPIPermissionsWebTestCase::createNode()
PMPAPIPermissionsWebTestCase::createNodeWithPermissions in pmpapi_permissions/tests/pmpapi_permissions.test

File

pmpapi_permissions/tests/pmpapi_permissions.test, line 162

Class

PMPAPIPermissionsWebTestCase
Tests the functionality of the PMPAPI permissions 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;
}