9 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
10 use Magento\Mtf\Constraint\AbstractConstraint;
39 public function processAssert(OrderIndex $orderIndex, $ordersCount =
null)
41 $successOnHoldMessage = ($ordersCount > 1)
42 ? sprintf(self::MULTIPLE_SUCCESS_ON_HOLD_MESSAGE, $ordersCount)
45 \PHPUnit\Framework\Assert::assertEquals(
46 $successOnHoldMessage,
47 $orderIndex->getMessagesBlock()->getSuccessMessage()
58 return 'On hold success message is displayed on order view page.';
const MULTIPLE_SUCCESS_ON_HOLD_MESSAGE
const SINGLE_SUCCESS_ON_HOLD_MESSAGE
processAssert(OrderIndex $orderIndex, $ordersCount=null)