Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCartBundleOptionTitle.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Checkout\Test\Page\CheckoutCart;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
17 class AssertCartBundleOptionTitle extends AbstractConstraint
18 {
26  public function processAssert(CheckoutCart $checkoutCart, $optionTitle)
27  {
28  $checkoutCart->open();
29  \PHPUnit\Framework\Assert::assertEquals(
30  $checkoutCart->getCartItemBlock()->getOptionsName(),
31  $optionTitle
32  );
33  }
34 
40  public function toString()
41  {
42  return 'Assert cart bundle option title is shown properly after change.';
43  }
44 }