yii2-netdisk/tests/_pages/ContactPage.php
2013-12-28 19:26:18 -05:00

23 lines
381 B
PHP

<?php
namespace tests\_pages;
use yii\codeception\BasePage;
class ContactPage extends BasePage
{
public $route = 'site/contact';
/**
* @param array $contactData
*/
public function submit(array $contactData)
{
$data = [];
foreach ($contactData as $name => $value) {
$data["ContactForm[$name]"] = $value;
}
$this->guy->submitForm('#contact-form', $data);
}
}