/** * Tests of FormState class with a form_state on the first page * of a multi page webform before the webform module processed it */ public function testFormStateFirstPageUnprocessed_returnsValueByKey() { $form_state = $this->formStateFirstPageUnprocessedStub(); $form = $this->formStub(); $formState = new FormState($this->webformNode, $form, $form_state); $this->assertEqual('Myfirstname', $formState->valueByKey('first_name')); }