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
integration
testsuite
Magento
Multishipping
Fixtures
billing_address.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
use
Magento\Quote\Api\Data\AddressInterface
;
9
use
Magento\TestFramework\Helper\Bootstrap
;
10
use
Magento\TestFramework\ObjectManager
;
11
16
if
(empty(
$quote
)) {
17
throw
new \Exception(
'$quote should be defined in the parent fixture'
);
18
}
19
20
$data
= [
21
'firstname'
=>
'Jonh'
,
22
'lastname'
=>
'Doe'
,
23
'telephone'
=>
'0333-233-221'
,
24
'street'
=> [
'Third Division 1'
],
25
'city'
=>
'New York'
,
26
'region'
=>
'NY'
,
27
'postcode'
=> 10029,
28
'country_id'
=>
'US'
,
29
'email'
=>
'
[email protected]
'
,
30
'address_type'
=>
'billing'
,
31
];
32
34
$objectManager
= Bootstrap::getObjectManager();
35
37
$address
=
$objectManager
->create(AddressInterface::class, [
'data'
=>
$data
]);
38
$quote
->setBillingAddress(
$address
);
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
Magento\Quote\Api\Data\AddressInterface
Definition:
AddressInterface.php:13
$quote
$quote
Definition:
paypal_quote.php:17
$data
if(empty($quote)) $data
Definition:
billing_address.php:20
$address
$address
Definition:
billing_address.php:37
Magento\TestFramework\ObjectManager
Definition:
Config.php:6
$objectManager
$objectManager
Definition:
billing_address.php:34