Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
CheckoutAgreements
Test
Block
Multishipping
MultishippingAgreementReview.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CheckoutAgreements\Test\Block\Multishipping
;
8
9
use \Magento\Multishipping\Test\Block\Checkout\Overview;
10
use
Magento\CheckoutAgreements\Test\Fixture\CheckoutAgreement
;
11
use Magento\Mtf\Client\Locator;
12
17
class
MultishippingAgreementReview
extends
Overview
18
{
24
protected
$notification
=
'div.mage-error'
;
25
31
protected
$agreement
=
'.//div[contains(@id, "checkout-review-submit")]//label[.="%s"]'
;
32
38
protected
$agreementCheckbox
=
'input[name^=agreement]'
;
39
45
public
function
getNotificationMassage
()
46
{
47
return
$this->_rootElement->find($this->notification)->getText();
48
}
49
56
public
function
setAgreement
(
$value
)
57
{
58
$this->_rootElement->find($this->agreementCheckbox, Locator::SELECTOR_CSS,
'checkbox'
)->setValue(
$value
);
59
}
60
67
public
function
checkAgreement
(CheckoutAgreement
$agreement
)
68
{
69
return
$this->_rootElement
70
->find(sprintf($this->agreement,
$agreement
->getCheckboxText()), Locator::SELECTOR_XPATH)->isVisible();
71
}
72
}
Magento\CheckoutAgreements\Test\Block\Multishipping\MultishippingAgreementReview\$notification
$notification
Definition:
MultishippingAgreementReview.php:24
Magento\CheckoutAgreements\Test\Fixture\CheckoutAgreement
Definition:
Stores.php:7
Magento\CheckoutAgreements\Test\Block\Multishipping\MultishippingAgreementReview\setAgreement
setAgreement($value)
Definition:
MultishippingAgreementReview.php:56
Magento\CheckoutAgreements\Test\Block\Multishipping\MultishippingAgreementReview\$agreement
$agreement
Definition:
MultishippingAgreementReview.php:31
$value
$value
Definition:
gender.phtml:16
Magento\CheckoutAgreements\Test\Block\Multishipping\MultishippingAgreementReview\checkAgreement
checkAgreement(CheckoutAgreement $agreement)
Definition:
MultishippingAgreementReview.php:67
Magento\CheckoutAgreements\Test\Block\Multishipping\MultishippingAgreementReview\$agreementCheckbox
$agreementCheckbox
Definition:
MultishippingAgreementReview.php:38
Magento\CheckoutAgreements\Test\Block\Multishipping\MultishippingAgreementReview\getNotificationMassage
getNotificationMassage()
Definition:
MultishippingAgreementReview.php:45
Magento\CheckoutAgreements\Test\Block\Multishipping\MultishippingAgreementReview
Definition:
MultishippingAgreementReview.php:17
Magento\CheckoutAgreements\Test\Block\Multishipping
Definition:
MultishippingAgreementReview.php:7
Magento\Multishipping\Test\Block\Checkout\Overview
Definition:
Overview.php:14