10 use Magento\Mtf\Constraint\AbstractConstraint;
11 use Magento\Backend\Test\Page\Adminhtml\SystemConfig;
12 use Magento\Cms\Test\Page\CmsIndex;
13 use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
34 AdminCache $adminCache,
39 $systemConfig->open();
40 $systemConfig->getPageActions()->selectStore(
$store->getGroupId() .
"/" .
$store->getName());
41 $systemConfig->getModalBlock()->acceptAlert();
42 $configGroup = $systemConfig->getForm()->getGroup(
'general',
'locale',
'code');
43 $configGroup->setValue(
'general',
'locale',
'code', $locale);
44 $systemConfig->getPageActions()->save();
45 $systemConfig->getMessagesBlock()->waitSuccessMessage();
49 $adminCache->getActionsBlock()->flushMagentoCache();
50 $adminCache->getMessagesBlock()->waitSuccessMessage();
54 if ($cmsIndex->getFooterBlock()->isStoreGroupSwitcherVisible()
55 && $cmsIndex->getFooterBlock()->isStoreGroupVisible(
$store)
57 $cmsIndex->getFooterBlock()->selectStoreGroup(
$store);
60 $cmsIndex->getStoreSwitcherBlock()->selectStoreView(
$store->getName());
62 \PHPUnit\Framework\Assert::assertTrue(
63 $cmsIndex->getSearchBlock()->isPlaceholderContains($welcomeText),
75 return 'Store locale has changed successfully.';
processAssert(SystemConfig $systemConfig, Store $store, CmsIndex $cmsIndex, AdminCache $adminCache, $locale, $welcomeText)