You are here

function ParagraphsIdTestCase::saveCurrentForm in Paragraphs ID 7

Save current form.

1 call to ParagraphsIdTestCase::saveCurrentForm()
ParagraphsIdTestCase::createNewTestNode in tests/paragraphs_id.test
Create new test node.

File

tests/paragraphs_id.test, line 76
Paragraphs pack primary module's tests.

Class

ParagraphsIdTestCase
Class ParagraphsIdTestCase

Code

function saveCurrentForm() {
  $edit = array(
    'title' => 'title',
    'field_pp_test_paragraphs[' . LANGUAGE_NONE . '][0][field_pp_test_body][' . LANGUAGE_NONE . '][0][value]' => 'body text',
  );
  $this
    ->drupalPost(NULL, $edit, t('Save'));
}