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
AssertCustomerRedirectToDashboard.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use Magento\Customer\Test\Page\CustomerAccountIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertCustomerRedirectToDashboard
extends
AbstractConstraint
16
{
20
const
DASHBOARD_MESSAGE
=
'My Account'
;
21
27
protected
$severeness
=
'low'
;
28
35
public
function
processAssert
(CustomerAccountIndex $accountIndexPage)
36
{
37
\PHPUnit\Framework\Assert::assertEquals(
38
self::DASHBOARD_MESSAGE,
39
$accountIndexPage->getTitleBlock()->getTitle(),
40
'Wrong dashboard title is displayed.'
41
);
42
}
43
49
public
function
toString
()
50
{
51
return
'Customer is redirected to Dashboard after registration.'
;
52
}
53
}
Magento\Customer\Test\Constraint\AssertCustomerRedirectToDashboard\toString
toString()
Definition:
AssertCustomerRedirectToDashboard.php:49
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertCustomerRedirectToDashboard\processAssert
processAssert(CustomerAccountIndex $accountIndexPage)
Definition:
AssertCustomerRedirectToDashboard.php:35
Magento\Customer\Test\Constraint\AssertCustomerRedirectToDashboard\$severeness
$severeness
Definition:
AssertCustomerRedirectToDashboard.php:27
Magento\Customer\Test\Constraint\AssertCustomerRedirectToDashboard\DASHBOARD_MESSAGE
const DASHBOARD_MESSAGE
Definition:
AssertCustomerRedirectToDashboard.php:20
Magento\Customer\Test\Constraint\AssertCustomerRedirectToDashboard
Definition:
AssertCustomerRedirectToDashboard.php:15