Commit 2fbd34c0 by Qiang Xue

CS fix.

parent 19fa5cb3
...@@ -14,9 +14,9 @@ class ContactPage extends BasePage ...@@ -14,9 +14,9 @@ class ContactPage extends BasePage
public function submit(array $contactData) public function submit(array $contactData)
{ {
foreach ($contactData as $field => $value) { foreach ($contactData as $field => $value) {
$inputType = ($field == 'body') ? 'textarea' : 'input'; $inputType = $field === 'body' ? 'textarea' : 'input';
$this->guy->fillField($inputType.'[name="ContactForm[' . $field . ']"]', $value); $this->guy->fillField($inputType . '[name="ContactForm[' . $field . ']"]', $value);
} }
$this->guy->click('Submit','#contact-form'); $this->guy->click('Submit', '#contact-form');
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment