本文整理匯總了PHP中mage\cms\test\page\CmsIndex::getFooterBlock方法的典型用法代碼示例。如果您正苦於以下問題:PHP CmsIndex::getFooterBlock方法的具體用法?PHP CmsIndex::getFooterBlock怎麽用?PHP CmsIndex::getFooterBlock使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mage\cms\test\page\CmsIndex
的用法示例。
在下文中一共展示了CmsIndex::getFooterBlock方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: selectStore
/**
* Select store.
*
* @param Store $store
* @return void
*/
protected function selectStore(Store $store)
{
$headerBlock = $this->cmsIndexPage->getHeaderBlock();
$footerBlock = $this->cmsIndexPage->getFooterBlock();
if ($footerBlock->isStoreGroupSwitcherVisible() && $footerBlock->isStoreGroupVisible($store)) {
$footerBlock->selectStoreGroup($store);
}
if ($headerBlock->isStoreViewDropdownVisible()) {
$headerBlock->selectStore($store->getName());
}
}
示例3: processAssert
/**
* Assert that created store view is not available on frontend.
*
* @param Store $store
* @param CmsIndex $cmsIndex
* @return void
*/
public function processAssert(Store $store, CmsIndex $cmsIndex)
{
$cmsIndex->open();
$footerBlock = $cmsIndex->getFooterBlock();
$headerBlock = $cmsIndex->getHeaderBlock();
if ($footerBlock->isStoreGroupSwitcherVisible() && $footerBlock->isStoreGroupVisible($store)) {
$footerBlock->selectStoreGroup($store);
}
$isStoreViewVisible = $headerBlock->isStoreViewDropdownVisible() ? $headerBlock->isStoreViewVisible($store) : false;
// if only one store view is assigned to store group
\PHPUnit_Framework_Assert::assertFalse($isStoreViewVisible, "Store view '{$store->getName()}' is visible in dropdown on CmsIndex page.");
}