You are here

public function SaveDraftTestCase::getNodeArray in Save Draft 6.2

Same name and namespace in other branches
  1. 7 save_draft.test \SaveDraftTestCase::getNodeArray()

Return a basic $edit array that can be used to save a node.

1 call to SaveDraftTestCase::getNodeArray()
SaveDraftTestCase::testNodeSave in ./save_draft.test
Make sure nodes save with the right publication status.

File

./save_draft.test, line 26

Class

SaveDraftTestCase

Code

public function getNodeArray() {
  $edit = array();
  $edit[$this->title_key] = $this
    ->randomName(8);
  $edit[$this->body_key] = $this
    ->randomName(8);
  return $edit;
}