$value) { $inputType = $field === 'body' ? 'textarea' : 'input'; $this->actor->fillField($inputType . '[name="SignupForm[' . $field . ']"]', $value); } $this->actor->click('signup-button'); } }