/** * @Then /^(the administrator) should know about (this additional note) for (this order made by "[^"]+")$/ */ public function theCustomerServiceShouldKnowAboutThisAdditionalNotes(AdminUserInterface $user, $note, OrderInterface $order) { $this->sharedSecurityService->performActionAsAdminUser($user, function () use($note, $order) { $this->showPage->open(['id' => $order->getId()]); Assert::true($this->showPage->hasNote($note), sprintf('I should see %s note, but I do not see', $note)); }); }
/** * @Then /^(the administrator) should see the order with total "([^"]+)" in order list$/ */ public function theAdministratorShouldSeeTheOrderWithTotalInOrderList(AdminUserInterface $user, $total) { $this->sharedSecurityService->performActionAsAdminUser($user, function () use($total) { $this->indexPage->open(); Assert::true($this->indexPage->isSingleResourceOnPage(['total' => $total]), sprintf('The order with total "%s" has not been found.', $total)); }); }