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
AssertStoreGroupSuccessDeleteAndBackupMessages.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Store\Test\Constraint
;
8
9
use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
16
class
AssertStoreGroupSuccessDeleteAndBackupMessages
extends
AbstractConstraint
17
{
21
const
SUCCESS_BACKUP_MESSAGE
=
'The database was backed up.'
;
22
26
const
SUCCESS_DELETE_MESSAGE
=
'You deleted the store.'
;
27
34
public
function
processAssert
(StoreIndex $storeIndex)
35
{
36
$actualMessages = $storeIndex->getMessagesBlock()->getSuccessMessages();
37
\PHPUnit\Framework\Assert::assertTrue(
38
in_array(self::SUCCESS_BACKUP_MESSAGE, $actualMessages) &&
39
in_array(self::SUCCESS_DELETE_MESSAGE, $actualMessages),
40
'Wrong success messages are displayed.'
41
);
42
}
43
49
public
function
toString
()
50
{
51
return
'Store group success delete and backup messages are present.'
;
52
}
53
}
Magento\Store\Test\Constraint\AssertStoreGroupSuccessDeleteAndBackupMessages\SUCCESS_BACKUP_MESSAGE
const SUCCESS_BACKUP_MESSAGE
Definition:
AssertStoreGroupSuccessDeleteAndBackupMessages.php:21
Magento\Store\Test\Constraint
Definition:
AssertStoreBackend.php:7
Magento\Store\Test\Constraint\AssertStoreGroupSuccessDeleteAndBackupMessages\toString
toString()
Definition:
AssertStoreGroupSuccessDeleteAndBackupMessages.php:49
Magento\Store\Test\Constraint\AssertStoreGroupSuccessDeleteAndBackupMessages\processAssert
processAssert(StoreIndex $storeIndex)
Definition:
AssertStoreGroupSuccessDeleteAndBackupMessages.php:34
Magento\Store\Test\Constraint\AssertStoreGroupSuccessDeleteAndBackupMessages
Definition:
AssertStoreGroupSuccessDeleteAndBackupMessages.php:16
Magento\Store\Test\Constraint\AssertStoreGroupSuccessDeleteAndBackupMessages\SUCCESS_DELETE_MESSAGE
const SUCCESS_DELETE_MESSAGE
Definition:
AssertStoreGroupSuccessDeleteAndBackupMessages.php:26