/** * Asserts that 'Additional Address Entries' contains expected message. * * @param CustomerAccountIndex $customerAccountIndex * @param CustomerAddress $customerAddress * @return void */ public function processAssert(CustomerAccountIndex $customerAccountIndex, CustomerAddress $customerAddress) { $customerAccountIndex->open(); $customerAccountIndex->getAccountNavigationBlock()->openNavigationItem('Address Book'); \PHPUnit_Framework_Assert::assertEquals(self::EXPECTED_MESSAGE, $customerAddress->getBookBlock()->getAdditionalAddressBlock()->getBlockText(), 'Expected text is absent in Additional Address block.'); }
/** * 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."); }