Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCartSectionIsEmptyOnBackendOrderPage.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Sales\Test\Page\Adminhtml\OrderCreateIndex;
11 
15 class AssertCartSectionIsEmptyOnBackendOrderPage extends AbstractConstraint
16 {
23  public function processAssert(OrderCreateIndex $orderCreateIndex)
24  {
25  $orderCreateIndex->open();
26  $backendOrderSidebarBlock = $orderCreateIndex->getBackendOrderSidebarBlock()->noItemsInCartCheck();
27  \PHPUnit\Framework\Assert::assertTrue(
28  $backendOrderSidebarBlock,
29  "Customer's Shopping Cart section on Order Create backend page is not empty."
30  );
31  }
32 
38  public function toString()
39  {
40  return "Customer's Shopping Cart section on Order Create backend page is empty.";
41  }
42 }