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
Backend
Test
Constraint
AssertInterfaceLocaleAvailableOptions.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Test\Constraint
;
7
8
use Magento\Mtf\Constraint\AbstractConstraint;
9
use
Magento\Mtf\Util\Command\Locales
;
10
14
class
AssertInterfaceLocaleAvailableOptions
extends
AbstractConstraint
15
{
16
/* tags */
17
const
SEVERITY
=
'middle'
;
18
/* end tags */
19
26
public
function
processAssert
(
27
Locales
$locales
,
28
$dropdownLocales = []
29
) {
30
if
($_ENV[
'mage_mode'
] ===
'production'
) {
31
\PHPUnit\Framework\Assert::assertEquals(
32
$locales
->getList(
Locales::TYPE_DEPLOYED
),
33
$dropdownLocales
34
);
35
}
else
{
36
\PHPUnit\Framework\Assert::assertEmpty(
37
array_diff($dropdownLocales,
$locales
->getList(
Locales::TYPE_ALL
))
38
);
39
}
40
}
41
47
public
function
toString
()
48
{
49
return
'Interface locales list has correct values.'
;
50
}
51
}
Magento\Mtf\Util\Command\Locales\TYPE_ALL
const TYPE_ALL
Definition:
Locales.php:19
Magento\Backend\Test\Constraint\AssertInterfaceLocaleAvailableOptions\toString
toString()
Definition:
AssertInterfaceLocaleAvailableOptions.php:47
$locales
$locales
Definition:
locales.php:14
Magento\Backend\Test\Constraint\AssertInterfaceLocaleAvailableOptions\SEVERITY
const SEVERITY
Definition:
AssertInterfaceLocaleAvailableOptions.php:17
Magento\Mtf\Util\Command\Locales\TYPE_DEPLOYED
const TYPE_DEPLOYED
Definition:
Locales.php:24
Magento\Mtf\Util\Command\Locales
Definition:
Locales.php:14
Magento\Backend\Test\Constraint\AssertInterfaceLocaleAvailableOptions
Definition:
AssertInterfaceLocaleAvailableOptions.php:14
Magento\Backend\Test\Constraint
Definition:
AssertAdminLoginPageIsAvailable.php:7
Magento\Backend\Test\Constraint\AssertInterfaceLocaleAvailableOptions\processAssert
processAssert(Locales $locales, $dropdownLocales=[])
Definition:
AssertInterfaceLocaleAvailableOptions.php:26