當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CmsIndex::getLinksBlock方法代碼示例

本文整理匯總了PHP中mage\cms\test\page\CmsIndex::getLinksBlock方法的典型用法代碼示例。如果您正苦於以下問題:PHP CmsIndex::getLinksBlock方法的具體用法?PHP CmsIndex::getLinksBlock怎麽用?PHP CmsIndex::getLinksBlock使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mage\cms\test\page\CmsIndex的用法示例。


在下文中一共展示了CmsIndex::getLinksBlock方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: run

 /**
  * Login customer.
  *
  * @return void
  */
 public function run()
 {
     $this->cmsIndex->open();
     $this->cmsIndex->getTopLinksBlock()->openAccount();
     if ($this->cmsIndex->getLinksBlock()->isLinkVisible("Log Out")) {
         $this->cmsIndex->getLinksBlock()->openLink("Log Out");
         $this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
         $this->cmsIndex->getTopLinksBlock()->openAccount();
     }
     $this->cmsIndex->getLinksBlock()->openLink("Log In");
     $this->customerAccountLogin->getLoginBlock()->login($this->customer);
 }
開發者ID:cewolf2002,項目名稱:magento,代碼行數:17,代碼來源:LoginCustomerOnFrontendStep.php

示例2: test

 /**
  * Run create existing customer account on frontend test.
  *
  * @param Customer $customer
  * @return void
  */
 public function test(Customer $customer)
 {
     //Steps
     $this->cmsIndex->open();
     $this->cmsIndex->getTopLinksBlock()->openAccount();
     $this->cmsIndex->getLinksBlock()->openLink('Register');
     $this->customerAccountCreate->getRegisterForm()->registerCustomer($customer);
 }
開發者ID:cewolf2002,項目名稱:magento,代碼行數:14,代碼來源:CreateExistingCustomerFrontendEntity.php

示例3: processAssert

 /**
  * Assert that the correct option details are displayed on the "View Details" tool tip.
  *
  * @param CmsIndex $cmsIndex
  * @param WishlistIndex $wishlistIndex
  * @param InjectableFixture $product
  * @param FixtureFactory $fixtureFactory
  * @return void
  */
 public function processAssert(CmsIndex $cmsIndex, WishlistIndex $wishlistIndex, InjectableFixture $product, FixtureFactory $fixtureFactory)
 {
     $cmsIndex->getTopLinksBlock()->openAccount();
     $cmsIndex->getLinksBlock()->openLink("My Wishlist");
     $actualOptions = $wishlistIndex->getItemsBlock()->getItemProductBlock($product)->getOptions();
     $cartFixture = $fixtureFactory->createByCode('cart', ['data' => ['items' => ['products' => [$product]]]]);
     $expectedOptions = $this->prepareOptions($cartFixture);
     $errors = $this->verifyData($expectedOptions, $this->sortDataByPath($actualOptions, '::title'));
     \PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
 }
開發者ID:chucky515,項目名稱:Magento-CE-Mirror,代碼行數:19,代碼來源:AssertProductDetailsInWishlist.php

示例4: processAssert

 /**
  * Assert that products are present in custom wishlist.
  *
  * @param CmsIndex $cmsIndex
  * @param Wishlist $multipleWishlist
  * @param WishlistIndex $wishlistIndex
  * @param InjectableFixture[] $products
  * @param int[]|null $qtyToAction
  * @return void
  */
 public function processAssert(CmsIndex $cmsIndex, Wishlist $multipleWishlist, WishlistIndex $wishlistIndex, array $products, $qtyToAction = null)
 {
     $this->wishlistIndex = $wishlistIndex;
     $cmsIndex->getTopLinksBlock()->openAccount();
     $cmsIndex->getLinksBlock()->openLink("My Wishlist");
     $wishlistIndex->getManagementBlock()->selectWishlist($multipleWishlist);
     foreach ($products as $key => $product) {
         $expectedQty = $qtyToAction !== null && isset($qtyToAction[$key]) ? $qtyToAction[$key] : null;
         $this->verifyItemProduct($product, $expectedQty);
     }
 }
開發者ID:QiuLihua83,項目名稱:magento-ee,代碼行數:21,代碼來源:AssertProductsInCustomWishlist.php

示例5: test

 /**
  * Run Change customer password test.
  *
  * @param Customer $initialCustomer
  * @param Customer $customer
  * @return void
  */
 public function test(Customer $initialCustomer, Customer $customer)
 {
     // Preconditions
     $initialCustomer->persist();
     // Steps
     $this->objectManager->create('Mage\\Customer\\Test\\TestStep\\LoginCustomerOnFrontendStep', ['customer' => $initialCustomer])->run();
     $this->cmsIndex->getTopLinksBlock()->openAccount();
     $this->cmsIndex->getLinksBlock()->openLink('My Account');
     $this->customerAccountIndex->getInfoBlock()->openChangePassword();
     $this->customerAccountEdit->getAccountInfoForm()->fill($customer);
     $this->customerAccountEdit->getAccountInfoForm()->submit();
 }
開發者ID:chucky515,項目名稱:Magento-CE-Mirror,代碼行數:19,代碼來源:ChangeCustomerPasswordTest.php

示例6: processAssert

 /**
  * Assert compare products link is NOT visible at the top of page.
  *
  * @param CmsIndex $cmsIndex
  * @return void
  */
 public function processAssert(CmsIndex $cmsIndex)
 {
     \PHPUnit_Framework_Assert::assertFalse($cmsIndex->getLinksBlock()->isLinkVisible("Compare Products"), 'The link "Compare Products..." is visible at the top of page.');
 }
開發者ID:QiuLihua83,項目名稱:magento-ee,代碼行數:10,代碼來源:AssertProductCompareItemsLinkIsAbsent.php

示例7: processAssert

 /**
  * Assert that product is present in default wishlist.
  *
  * @param CmsIndex $cmsIndex
  * @param WishlistIndex $wishlistIndex
  * @param InjectableFixture $product
  * @return void
  */
 public function processAssert(CmsIndex $cmsIndex, WishlistIndex $wishlistIndex, InjectableFixture $product)
 {
     $cmsIndex->getTopLinksBlock()->openAccount();
     $cmsIndex->getLinksBlock()->openLink("My Wishlist");
     \PHPUnit_Framework_Assert::assertTrue($wishlistIndex->getItemsBlock()->getItemProductBlock($product)->isVisible(), $product->getName() . ' is not visible on wishlist page.');
 }
開發者ID:cewolf2002,項目名稱:magento,代碼行數:14,代碼來源:AssertProductIsPresentInWishlist.php


注:本文中的mage\cms\test\page\CmsIndex::getLinksBlock方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。