/** * Place order with multishipping. * * @return mixed */ public function run() { $this->checkoutMultishippingOverview->getOverviewBlock()->clickPlaceOrder(); $ordersIds = $this->checkoutMultishippingSuccess->getSuccessBlock()->getOrdersIds(); return ['ordersIds' => $ordersIds]; }
/** * Assert that success message is correct. * * @param CheckoutMultishippingSuccess $сheckoutMultishippingSuccess * @return void */ public function processAssert(CheckoutMultishippingSuccess $сheckoutMultishippingSuccess) { \PHPUnit_Framework_Assert::assertEquals(self::SUCCESS_MESSAGE, $сheckoutMultishippingSuccess->getTitleBlock()->getTitle()); }