protected function FormStateTest::formStateFirstPageProcessedStub in Little helpers 7
Same name and namespace in other branches
- 7.2 tests/Webform/FormStateTest.php \Drupal\little_helpers\Test\Webform\FormStateTest::formStateFirstPageProcessedStub()
Get a form_state stub that was observed after submitting the first step.
1 call to FormStateTest::formStateFirstPageProcessedStub()
- FormStateTest::testFormStateFirstPageProcessed in tests/
Webform/ FormStateTest.php - Test reading values after the first step was submitted.
File
- tests/
Webform/ FormStateTest.php, line 48
Class
- FormStateTest
- Test creating a submission object from various form states.
Namespace
Drupal\little_helpers\Test\WebformCode
protected function formStateFirstPageProcessedStub() {
$form_state = array(
'values' => array(
'details' => array(
'nid' => $this->webformNode->nid,
'sid' => NULL,
'uid' => '1',
'page_num' => 1,
'page_count' => 3,
'finished' => 0,
),
'submitted' => array(
1 => 'Myfirstname',
3 => 'myemail@address.at',
15 => '01/1234568',
),
'op' => 'Next',
),
'webform' => array(
'component_tree' => array(
'children' => $this->webformNode->webform['components'],
),
'page_num' => 1,
'page_count' => 3,
),
'clicked_button' => array(
'#parents' => array(
0 => 'next',
),
),
);
return $form_state;
}