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
Customer
_files
two_customers.php
Go to the documentation of this file.
1
<?php
9
require
'customer.php'
;
10
11
$customer
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(
12
\
Magento
\Customer\Model\Customer::class
13
);
14
$customer
->setWebsiteId(1)
15
->setEntityId(2)
16
->setEntityTypeId(1)
17
->setAttributeSetId(0)
18
->setEmail(
'
[email protected]
'
)
19
->setPassword(
'password'
)
20
->setGroupId(1)
21
->setStoreId(1)
22
->setIsActive(1)
23
->setFirstname(
'Firstname'
)
24
->setLastname(
'Lastname'
)
25
->setDefaultBilling(1)
26
->setDefaultShipping(1);
27
28
$customer
->isObjectNew(
true
);
29
$customer
->save();
$customer
$customer
Definition:
two_customers.php:11
Magento
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125