9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Checkout\Test\Page\CheckoutCart;
11 use Magento\Cms\Test\Page\CmsIndex;
12 use Magento\Mtf\TestStep\TestStepFactory;
41 TestStepFactory $stepFactory,
50 if (!empty($cartFixtures[
$index])) {
52 \
Magento\Customer\Test\TestStep\LoginCustomerOnFrontendStep::class,
55 \PHPUnit\Framework\Assert::assertEquals(
57 self::WELCOME_MESSAGE,
60 $cmsIndex->getLinksBlock()->getWelcomeText(),
61 'Customer welcome message is wrong.' 63 $assertProductQty->processAssert($checkoutCart, $cartFixtures[
$index]);
64 $assertSubtotal->processAssert($checkoutCart, $cartFixtures[
$index]);
66 $assertMinicart->processAssert($cmsIndex, $cartFixtures[
$index]);
78 return 'Shopping cart data is correct for each customer.';
processAssert(CheckoutCart $checkoutCart, CmsIndex $cmsIndex, TestStepFactory $stepFactory, array $customers, array $cartFixtures, AssertProductQtyInShoppingCart $assertProductQty, AssertSubtotalInShoppingCart $assertSubtotal, AssertGrandTotalInShoppingCart $assertGrandtotal, AssertProductDataInMiniShoppingCart $assertMinicart)