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
GiftMessage
Test
TestStep
AddGiftMessageStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\GiftMessage\Test\TestStep
;
8
9
use Magento\Checkout\Test\Page\CheckoutCart;
10
use
Magento\GiftMessage\Test\Fixture\GiftMessage
;
11
use Magento\Mtf\TestStep\TestStepInterface;
12
17
class
AddGiftMessageStep
implements
TestStepInterface
18
{
24
protected
$checkoutCart
;
25
31
protected
$giftMessage
;
32
38
protected
$products
;
39
46
public
function
__construct
(
CheckoutCart
$checkoutCart
, GiftMessage
$giftMessage
, array
$products
= [])
47
{
48
$this->checkoutCart =
$checkoutCart
;
49
$this->giftMessage =
$giftMessage
;
50
$this->products =
$products
;
51
}
52
58
public
function
run
()
59
{
60
$this->checkoutCart->open();
61
$this->checkoutCart->getGiftMessagesItemBlock()->fillGiftMessageItem($this->giftMessage, $this->products);
62
$this->checkoutCart->getGiftMessagesOrderBlock()->fillGiftMessageOrder($this->giftMessage, $this->products);
63
64
return
[
'giftMessage'
=>
$this->giftMessage
];
65
}
66
}
Magento\Checkout\Model\Cart
Definition:
CartInterface.php:6
Magento\GiftMessage\Test\Fixture\GiftMessage
Definition:
Items.php:7
Magento\GiftMessage\Test\TestStep\AddGiftMessageStep
Definition:
AddGiftMessageStep.php:17
Magento\GiftMessage\Test\TestStep\AddGiftMessageStep\run
run()
Definition:
AddGiftMessageStep.php:58
Magento\GiftMessage\Test\TestStep\AddGiftMessageStep\__construct
__construct(CheckoutCart $checkoutCart, GiftMessage $giftMessage, array $products=[])
Definition:
AddGiftMessageStep.php:46
Magento\GiftMessage\Test\TestStep
Definition:
AddGiftMessageBackendStep.php:7
Magento\GiftMessage\Test\TestStep\AddGiftMessageStep\$giftMessage
$giftMessage
Definition:
AddGiftMessageStep.php:31
Magento\GiftMessage\Test\TestStep\AddGiftMessageStep\$products
$products
Definition:
AddGiftMessageStep.php:38
Magento\GiftMessage\Test\TestStep\AddGiftMessageStep\$checkoutCart
$checkoutCart
Definition:
AddGiftMessageStep.php:24