Definition at line 10 of file SendTest.php.
◆ _callBlockMethod()
_callBlockMethod |
( |
|
$field | ) |
|
|
protected |
Call block method based on form field
- Parameters
-
- Returns
- null|string
Definition at line 84 of file SendTest.php.
88 return $this->_block->getUserName();
90 return $this->_block->getEmail();
◆ customerSessionDataProvider()
customerSessionDataProvider |
( |
| ) |
|
- Returns
- array
Definition at line 70 of file SendTest.php.
73 [
'name',
'John Smith'],
◆ formDataProvider()
- Returns
- array
Definition at line 39 of file SendTest.php.
42 [
'name',
'Customer Form Name'],
◆ setUp()
◆ testGetCustomerFieldFromFormData()
testGetCustomerFieldFromFormData |
( |
|
$field, |
|
|
|
$value |
|
) |
| |
- Parameters
-
string | $field | |
string | $value | @dataProvider formDataProvider @covers \Magento\SendFriend\Block\Send::getUserName @covers \Magento\SendFriend\Block\Send::getEmail |
Definition at line 29 of file SendTest.php.
31 $formData = [
'sender' => [$field =>
$value]];
32 $this->_block->setFormData($formData);
◆ $_block
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/SendFriend/Block/SendTest.php