9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Mtf\TestStep\TestStepFactory;
27 TestStepFactory $stepFactory,
28 array $dashboardOrder,
30 $expectedOrdersQuantityOnDashboard
32 $orderQty = $stepFactory->create(
33 \
Magento\Backend\Test\TestStep\GetDashboardOrderStep::class,
34 [
'argumentsList' => $argumentsList]
35 )->run()[
'dashboardOrder'][
'quantity'];
36 $invoicedOrdersQty = $orderQty - $dashboardOrder[
'quantity'];
38 \PHPUnit\Framework\Assert::assertEquals(
40 $expectedOrdersQuantityOnDashboard,
41 'Order quantity om admin dashboard is not correct.' 52 return 'Order information on dashboard is correct.';
processAssert(TestStepFactory $stepFactory, array $dashboardOrder, array $argumentsList, $expectedOrdersQuantityOnDashboard)