public function testFormStateFirstPageUnprocessed_returnsValueByType() { $form_state = $this->formStateFirstPageUnprocessedStub(); $form = $this->formStub(); $formState = new FormState($this->webformNode, $form, $form_state); $value_reference = array('first_name' => 'Myfirstname', 'phone_number' => '01/1234568', 'last_name' => NULL, 'new_1400574602889' => NULL, 'date_of_birth' => NULL); $this->assertEqual($value_reference, $formState->valuesByType('textfield')); }