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
Customer
Test
TestCase
CreateExistingCustomerFrontendEntity.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\TestCase
;
8
9
use Magento\Cms\Test\Page\CmsIndex;
10
use
Magento\Customer\Test\Fixture\Customer
;
11
use Magento\Customer\Test\Page\CustomerAccountCreate;
12
use
Magento\Customer\Test\Page\CustomerAccountLogout
;
13
use Magento\Mtf\TestCase\Injectable;
14
29
class
CreateExistingCustomerFrontendEntity
extends
Injectable
30
{
31
/* tags */
32
const
MVP
=
'yes'
;
33
/* end tags */
34
40
protected
$customerAccountCreate
;
41
47
protected
$customerAccountLogout
;
48
54
protected
$cmsIndex
;
55
64
public
function
__inject
(
65
CustomerAccountCreate
$customerAccountCreate
,
66
CustomerAccountLogout
$customerAccountLogout
,
67
CmsIndex
$cmsIndex
68
) {
69
$this->customerAccountLogout =
$customerAccountLogout
;
70
$this->customerAccountCreate =
$customerAccountCreate
;
71
$this->cmsIndex =
$cmsIndex
;
72
}
73
80
public
function
testCreateExistingCustomer
(Customer
$customer
)
81
{
82
// Precondition
83
$existingCustomer = clone
$customer
;
84
$customer
->persist();
85
86
// Steps
87
$this->cmsIndex->open();
88
$this->cmsIndex->getLinksBlock()->openLink(
'Create an Account'
);
89
$this->customerAccountCreate->getRegisterForm()->registerCustomer($existingCustomer);
90
}
91
97
public
function
tearDown
()
98
{
99
$this->objectManager->create(\
Magento
\Customer\Test\TestStep\LogoutCustomerOnFrontendStep::class)->run();
100
}
101
}
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity\tearDown
tearDown()
Definition:
CreateExistingCustomerFrontendEntity.php:97
$customer
$customer
Definition:
customers.php:11
Magento\Customer\Test\Page\CustomerAccountLogout
Definition:
CustomerAccountLogout.php:14
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity\testCreateExistingCustomer
testCreateExistingCustomer(Customer $customer)
Definition:
CreateExistingCustomerFrontendEntity.php:80
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity\$customerAccountCreate
$customerAccountCreate
Definition:
CreateExistingCustomerFrontendEntity.php:40
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity\__inject
__inject(CustomerAccountCreate $customerAccountCreate, CustomerAccountLogout $customerAccountLogout, CmsIndex $cmsIndex)
Definition:
CreateExistingCustomerFrontendEntity.php:64
Magento
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity
Definition:
CreateExistingCustomerFrontendEntity.php:29
Magento\Customer\Test\Fixture\Customer
Definition:
Address.php:7
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity\$cmsIndex
$cmsIndex
Definition:
CreateExistingCustomerFrontendEntity.php:54
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity\MVP
const MVP
Definition:
CreateExistingCustomerFrontendEntity.php:32
Magento\Customer\Test\TestCase\CreateExistingCustomerFrontendEntity\$customerAccountLogout
$customerAccountLogout
Definition:
CreateExistingCustomerFrontendEntity.php:47
Magento\Customer\Test\TestCase
Definition:
AbstractApplyVatIdTest.php:7