public function SaveDraftTestCase::getNodeArray in Save Draft 7
Same name and namespace in other branches
- 6.2 save_draft.test \SaveDraftTestCase::getNodeArray()
Return a basic $edit array that can be used to save a node.
2 calls to SaveDraftTestCase::getNodeArray()
- SaveDraftTestCase::testNodeSave in ./
save_draft.test - Make sure nodes save with the right publication status.
- SaveDraftTestCase::testNodeValidation in ./
save_draft.test - Make sure node validation still runs even after we've altered the form.
File
- ./
save_draft.test, line 68 - Link base test file - contains common functions for testing links.
Class
- SaveDraftTestCase
- @file Link base test file - contains common functions for testing links.
Code
public function getNodeArray() {
$edit = array();
$edit[$this->title_key] = $this
->randomName(8);
$edit[$this->body_key] = $this
->randomName(8);
return $edit;
}