Qiang Xue 12 rokov pred
rodič
commit
042ba3f435
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      tests/_pages/ContactPage.php

+ 3 - 3
tests/_pages/ContactPage.php

@@ -14,9 +14,9 @@ class ContactPage extends BasePage
 	public function submit(array $contactData)
 	{
 		foreach ($contactData as $field => $value) {
-			$inputType = ($field == 'body') ? 'textarea' : 'input';
-			$this->guy->fillField($inputType.'[name="ContactForm[' . $field . ']"]', $value);
+			$inputType = $field === 'body' ? 'textarea' : 'input';
+			$this->guy->fillField($inputType . '[name="ContactForm[' . $field . ']"]', $value);
 		}
-		$this->guy->click('Submit','#contact-form');
+		$this->guy->click('Submit', '#contact-form');
 	}
 }