/** * Assert that Wishlist can't be find by another Customer (or guest) via "Wishlist Search". * * @param CustomerAccountLogout $customerAccountLogout * @param CmsIndex $cmsIndex * @param CatalogCategoryView $catalogCategoryView * @param SearchResult $searchResult * @param CatalogCategory $category * @param Customer $customer * @param Wishlist $wishlist * @return void */ public function processAssert(CustomerAccountLogout $customerAccountLogout, CmsIndex $cmsIndex, CatalogCategoryView $catalogCategoryView, SearchResult $searchResult, CatalogCategory $category, Customer $customer, Wishlist $wishlist) { $customerAccountLogout->open(); $cmsIndex->open()->getTopmenu()->selectCategory($category->getName()); $catalogCategoryView->getWishlistSearchBlock()->searchByCustomer($customer); \PHPUnit_Framework_Assert::assertFalse($searchResult->getWishlistSearchResultBlock()->isWishlistVisibleInGrid($wishlist), "Multiple wishlist is visible on wishlist search result page."); }