本文整理汇总了PHP中Magento\Cms\Test\Page\CmsIndex::getFooterBlock方法的典型用法代码示例。如果您正苦于以下问题:PHP CmsIndex::getFooterBlock方法的具体用法?PHP CmsIndex::getFooterBlock怎么用?PHP CmsIndex::getFooterBlock使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Cms\Test\Page\CmsIndex
的用法示例。
在下文中一共展示了CmsIndex::getFooterBlock方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
/**
* Run step.
*
* @return void
*/
public function run()
{
$this->customerAccountLogout->open();
$this->cmsIndex->getFooterBlock()->clickLink('Orders and Returns');
$this->salesGuestForm->getSearchForm()->fill($this->order);
$this->salesGuestForm->getSearchForm()->submit();
}
示例2: processAssert
/**
* Assert that created store view available on frontend (store view selector on page top)
*
* @param Store $store
* @param CmsIndex $cmsIndex
* @return void
*/
public function processAssert(Store $store, CmsIndex $cmsIndex)
{
$cmsIndex->open();
if ($cmsIndex->getFooterBlock()->isStoreGroupSwitcherVisible() && $cmsIndex->getFooterBlock()->isStoreGroupVisible($store)) {
$cmsIndex->getFooterBlock()->selectStoreGroup($store);
}
$isStoreViewVisible = !$cmsIndex->getStoreSwitcherBlock()->isStoreViewDropdownVisible() ? true : $cmsIndex->getStoreSwitcherBlock()->isStoreViewVisible($store);
\PHPUnit_Framework_Assert::assertTrue($isStoreViewVisible, "Store view is not visible in dropdown on CmsIndex page");
}
示例3: test
/**
* Run test creation for advanced search entity.
*
* @param CatalogProductSimple $productSearch
* @param CmsIndex $cmsIndex
* @param AdvancedSearch $searchPage
* @return void
*/
public function test(CatalogProductSimple $productSearch, CmsIndex $cmsIndex, AdvancedSearch $searchPage)
{
$cmsIndex->open();
$cmsIndex->getFooterBlock()->openAdvancedSearch();
$searchForm = $searchPage->getForm();
$searchForm->fill($productSearch);
$searchForm->submit();
}
示例4: processAssert
/**
* Assert that locale options can be changed and checks new text on index page.
*
* @param SystemConfig $systemConfig
* @param Store $store
* @param CmsIndex $cmsIndex
* @param AdminCache $adminCache
* @param string $locale
* @param string $welcomeText
*/
public function processAssert(SystemConfig $systemConfig, Store $store, CmsIndex $cmsIndex, AdminCache $adminCache, $locale, $welcomeText)
{
// Set locale options
$systemConfig->open();
$systemConfig->getPageActions()->selectStore($store->getGroupId() . "/" . $store->getName());
$systemConfig->getModalBlock()->acceptAlert();
$configGroup = $systemConfig->getForm()->getGroup('general', 'locale', 'code');
$configGroup->setValue('general', 'locale', 'code', $locale);
$systemConfig->getPageActions()->save();
$systemConfig->getMessagesBlock()->waitSuccessMessage();
// Flush cache
$adminCache->open();
$adminCache->getActionsBlock()->flushMagentoCache();
$adminCache->getMessagesBlock()->waitSuccessMessage();
// Check presents income text on index page
$cmsIndex->open();
if ($cmsIndex->getFooterBlock()->isStoreGroupSwitcherVisible() && $cmsIndex->getFooterBlock()->isStoreGroupVisible($store)) {
$cmsIndex->getFooterBlock()->selectStoreGroup($store);
}
$cmsIndex->getStoreSwitcherBlock()->selectStoreView($store->getName());
\PHPUnit_Framework_Assert::assertTrue($cmsIndex->getSearchBlock()->isPlaceholderContains($welcomeText), "Locale not applied.");
}
示例5: processAssert
/**
* Assert that product attribute is searchable on Frontend.
*
* @param CmsIndex $cmsIndex
* @param InjectableFixture $product
* @param AdvancedSearch $searchPage
* @param CatalogsearchResult $catalogSearchResult
* @param FixtureFactory $fixtureFactory
* @return void
*/
public function processAssert(CmsIndex $cmsIndex, InjectableFixture $product, AdvancedSearch $searchPage, CatalogsearchResult $catalogSearchResult, FixtureFactory $fixtureFactory)
{
$this->fixtureFactory = $fixtureFactory;
$cmsIndex->open();
$cmsIndex->getFooterBlock()->openAdvancedSearch();
$searchForm = $searchPage->getForm();
$productSearch = $this->prepareFixture($product);
$searchForm->fill($productSearch);
$searchForm->submit();
$isVisible = $catalogSearchResult->getListProductBlock()->getProductItem($product)->isVisible();
while (!$isVisible && $catalogSearchResult->getBottomToolbar()->nextPage()) {
$isVisible = $catalogSearchResult->getListProductBlock()->getProductItem($product)->isVisible();
}
\PHPUnit_Framework_Assert::assertTrue($isVisible, 'Product attribute is not searchable on Frontend.');
}
示例6: processAssert
/**
* Assert that created widget displayed on frontend on Home page and on Advanced Search and
* after click on widget link on frontend system redirects you to catalog page.
*
* @param CmsIndex $cmsIndex
* @param CatalogCategoryView $categoryView
* @param Widget $widget
* @param AdminCache $adminCache
* @return void
*/
public function processAssert(CmsIndex $cmsIndex, CatalogCategoryView $categoryView, Widget $widget, AdminCache $adminCache)
{
// Flush cache
$adminCache->open();
$adminCache->getActionsBlock()->flushMagentoCache();
$adminCache->getMessagesBlock()->waitSuccessMessage();
$cmsIndex->open();
$widgetText = $widget->getParameters()['anchor_text'];
\PHPUnit_Framework_Assert::assertTrue($cmsIndex->getWidgetView()->isWidgetVisible($widget, $widgetText), 'Widget with type catalog category link is absent on Home page.');
$cmsIndex->getWidgetView()->clickToWidget($widget, $widgetText);
$title = $categoryView->getTitleBlock()->getTitle();
\PHPUnit_Framework_Assert::assertEquals($widget->getParameters()['entities'][0]->getName(), $title, 'Wrong category title.');
$cmsIndex->getFooterBlock()->openAdvancedSearch();
\PHPUnit_Framework_Assert::assertTrue($cmsIndex->getWidgetView()->isWidgetVisible($widget, $widgetText), 'Widget with type catalog category link is absent on Advanced Search page.');
}
示例7: processAssert
/**
* Assert that created widget displayed on frontent on Home page and on Advanced Search and
* after click on widget link on frontend system redirects you to cms page.
*
* @param CmsIndex $cmsIndex
* @param Widget $widget
* @param AdminCache $adminCache
* @return void
*/
public function processAssert(CmsIndex $cmsIndex, Widget $widget, AdminCache $adminCache)
{
// Flush cache
$adminCache->open();
$adminCache->getActionsBlock()->flushMagentoCache();
$adminCache->getMessagesBlock()->waitSuccessMessage();
$cmsIndex->open();
$widgetText = $widget->getParameters()['anchor_text'];
\PHPUnit_Framework_Assert::assertTrue($cmsIndex->getWidgetView()->isWidgetVisible($widget, $widgetText), 'Widget with type CmsPageLink is absent on Home page.');
$title = isset($widget->getParameters()['node']) ? $widget->getParameters()['entities'][0]->getLabel() : $widget->getParameters()['entities'][0]->getContentHeading();
$cmsIndex->getWidgetView()->clickToWidget($widget, $widgetText);
$pageTitle = $cmsIndex->getCmsPageBlock()->getPageTitle();
\PHPUnit_Framework_Assert::assertEquals($title, $pageTitle, 'Wrong page title on Cms page.');
$cmsIndex->getFooterBlock()->openAdvancedSearch();
\PHPUnit_Framework_Assert::assertTrue($cmsIndex->getWidgetView()->isWidgetVisible($widget, $widgetText), 'Widget with type CmsPageLink is absent on Advanced Search page.');
}
示例8: processAssert
/**
* Assert that selected language currently displays on frontend.
*
* @param string $languageTemplate
* @param CmsIndex $indexPage
* @return void
*/
public function processAssert($languageTemplate, CmsIndex $indexPage)
{
$indexPage->open();
\PHPUnit_Framework_Assert::assertTrue($indexPage->getFooterBlock()->isLinkVisible($languageTemplate), 'Selected language not displays on frontend.');
}