本文整理汇总了PHP中Shopware\Tests\Mink\Helper::fillForm方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::fillForm方法的具体用法?PHP Helper::fillForm怎么用?PHP Helper::fillForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shopware\Tests\Mink\Helper
的用法示例。
在下文中一共展示了Helper::fillForm方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: submitNotification
/**
* Fills the notification form and submits it
* @param string $email
*/
public function submitNotification($email)
{
$data = [['field' => 'sNotificationEmail', 'value' => $email]];
Helper::fillForm($this, 'notificationForm', $data);
$elements = Helper::findElements($this, ['notificationSubmit']);
$elements['notificationSubmit']->press();
}
示例2: subscribeNewsletter
/**
* @param array $data
*/
public function subscribeNewsletter(array $data)
{
Helper::fillForm($this, 'newsletterForm', $data);
$locators = array('newsletterFormSubmit');
$elements = Helper::findElements($this, $locators);
$elements['newsletterFormSubmit']->press();
}
示例3: unsubscribeNewsletter
/**
* @param array $data
*/
public function unsubscribeNewsletter(array $data)
{
$mode = array(array('field' => 'subscribeToNewsletter', 'value' => -1));
$data = array_merge($data, $mode);
Helper::fillForm($this, 'newsletterForm', $data);
Helper::pressNamedButton($this, 'newsletterFormSubmit');
}
示例4: changeShippingMethod
/**
* Changes the shipping method
* @param array $data
*/
public function changeShippingMethod(array $data = [])
{
$element = $this->getElement('CheckoutPayment');
Helper::clickNamedLink($element, 'changeButton');
Helper::fillForm($this, 'shippingPaymentForm', $data);
Helper::pressNamedButton($this, 'changePaymentButton');
}
示例5: submitNotification
/**
* Fills the notification form and submits it
* @param string $email
*/
public function submitNotification($email)
{
$data = array(array('field' => 'sNotificationEmail', 'value' => $email));
Helper::fillForm($this, 'notificationForm', $data);
$locators = array('notificationSubmit');
$elements = Helper::findElements($this, $locators);
$elements['notificationSubmit']->press();
}
示例6: changeShippingMethod
/**
* Changes the shipping method
* @param array $data
*/
public function changeShippingMethod($data = array())
{
$element = $this->getElement('CheckoutPayment');
$language = Helper::getCurrentLanguage($this);
Helper::clickNamedLink($element, 'changeButton', $language);
Helper::fillForm($this, 'shippingPaymentForm', $data);
Helper::pressNamedButton($this, 'changePaymentButton');
}
示例7: writeComment
/**
* Fills out the comment form and submits it
* @param array $data
*/
public function writeComment(array $data)
{
$writeCommentLink = $this->getSession()->getPage()->find("css", ".blog--comments-form a.btn--create-entry");
if ($writeCommentLink) {
$writeCommentLink->click();
}
Helper::fillForm($this, 'commentForm', $data);
Helper::pressNamedButton($this, 'commentFormSubmit');
}
示例8: changeShippingMethod
/**
* Changes the shipping method
* @param array $data
*/
public function changeShippingMethod($data = [])
{
Helper::fillForm($this, 'shippingPaymentForm', $data);
Helper::pressNamedButton($this, 'changePaymentButton');
}
示例9: writeComment
/**
* @param array $data
*/
public function writeComment(array $data)
{
Helper::fillForm($this, 'commentForm', $data);
Helper::pressNamedButton($this, 'commentFormSubmit');
}
示例10: register
/**
* @param array $data
*/
public function register($data)
{
if ($this->verifyPage('identifierLogin') === true) {
Helper::pressNamedButton($this, 'registerButton');
}
Helper::fillForm($this, 'registrationForm', $data);
Helper::pressNamedButton($this, 'sendButton');
}
示例11: submitInquiryForm
/**
* Fills the fields of the inquiry form with $data and submits it
* @param array $data
*/
public function submitInquiryForm(array $data)
{
Helper::fillForm($this, 'inquiryForm', $data);
Helper::pressNamedButton($this, 'submitButton');
}