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
Constraint
AssertCustomerBackendFormTitle.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use Magento\Mtf\Constraint\AbstractConstraint;
10
use Magento\Customer\Test\Page\CustomerAccountIndex;
11
use
Magento\Customer\Test\Fixture\Customer
;
12
16
class
AssertCustomerBackendFormTitle
extends
AbstractConstraint
17
{
18
/* tags */
19
const
SEVERITY
=
'middle'
;
20
/* end tags */
21
29
public
function
processAssert
(CustomerAccountIndex $pageCustomerIndex, Customer
$customer
)
30
{
31
\PHPUnit\Framework\Assert::assertEquals(
32
$customer
->getFirstname() .
' '
.
$customer
->getLastname(),
33
$pageCustomerIndex->getTitleBlock()->getTitle(),
34
'Wrong page title is displayed.'
35
);
36
}
37
43
public
function
toString
()
44
{
45
return
'Customer backend edit form title is correct.'
;
46
}
47
}
$customer
$customer
Definition:
customers.php:11
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertCustomerBackendFormTitle\toString
toString()
Definition:
AssertCustomerBackendFormTitle.php:43
Magento\Customer\Test\Constraint\AssertCustomerBackendFormTitle\SEVERITY
const SEVERITY
Definition:
AssertCustomerBackendFormTitle.php:19
Magento\Customer\Test\Constraint\AssertCustomerBackendFormTitle
Definition:
AssertCustomerBackendFormTitle.php:16
Magento\Customer\Test\Constraint\AssertCustomerBackendFormTitle\processAssert
processAssert(CustomerAccountIndex $pageCustomerIndex, Customer $customer)
Definition:
AssertCustomerBackendFormTitle.php:29
Magento\Customer\Test\Fixture\Customer
Definition:
Address.php:7