/**
  * 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);
     }
 }
 /**
  * Run Create multiple wishlist entity test.
  *
  * @param Customer $customer
  * @param Wishlist $wishlist
  * @return void
  */
 public function test(Customer $customer, Wishlist $wishlist)
 {
     // Prepare widget for assertions
     $this->setupConfiguration();
     $this->createWishlistSearchWidget();
     // Steps:
     $this->objectManager->create('Mage\\Customer\\Test\\TestStep\\LoginCustomerOnFrontendStep', ['customer' => $customer])->run();
     $this->customerAccountIndex->getAccountNavigationBlock()->openNavigationItem('My Wishlists');
     $this->wishlistIndex->getManagementBlock()->clickCreateNewWishlist();
     $this->wishlistIndex->getBehaviourBlock()->fillWishlist($wishlist);
 }
 /**
  * Assert that multiple wishlist is present on 'My Account' page.
  *
  * @param CustomerAccountIndex $customerAccountIndex
  * @param WishlistIndex $wishlistIndex
  * @param Wishlist $wishlist
  * @return void
  */
 public function processAssert(CustomerAccountIndex $customerAccountIndex, WishlistIndex $wishlistIndex, Wishlist $wishlist)
 {
     $customerAccountIndex->open()->getAccountNavigationBlock()->openNavigationItem('My Wishlists');
     \PHPUnit_Framework_Assert::assertTrue($wishlistIndex->getManagementBlock()->isWishlistVisible($wishlist), "{$wishlist->getName()} multiple wishlist is not visible on My Account page.");
 }