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
Store
Test
Constraint
AssertStoreDisabledErrorSaveMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Store\Test\Constraint
;
8
9
use Magento\Backend\Test\Page\Adminhtml\EditStore;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertStoreDisabledErrorSaveMessage
extends
AbstractConstraint
16
{
20
const
ERROR_MESSAGE
=
'The default store cannot be disabled'
;
21
28
public
function
processAssert
(EditStore $editStore)
29
{
30
\PHPUnit\Framework\Assert::assertEquals(
31
self::ERROR_MESSAGE,
32
$editStore->getMessagesBlock()->getErrorMessage(),
33
'Wrong error message is displayed.'
34
);
35
}
36
42
public
function
toString
()
43
{
44
return
'Store View disabled error create message is present.'
;
45
}
46
}
Magento\Store\Test\Constraint
Definition:
AssertStoreBackend.php:7
Magento\Store\Test\Constraint\AssertStoreDisabledErrorSaveMessage
Definition:
AssertStoreDisabledErrorSaveMessage.php:15
Magento\Store\Test\Constraint\AssertStoreDisabledErrorSaveMessage\ERROR_MESSAGE
const ERROR_MESSAGE
Definition:
AssertStoreDisabledErrorSaveMessage.php:20
Magento\Store\Test\Constraint\AssertStoreDisabledErrorSaveMessage\processAssert
processAssert(EditStore $editStore)
Definition:
AssertStoreDisabledErrorSaveMessage.php:28
Magento\Store\Test\Constraint\AssertStoreDisabledErrorSaveMessage\toString
toString()
Definition:
AssertStoreDisabledErrorSaveMessage.php:42