Пример #1
0
 /**
  * @Then /^(the administrator) should know about (this additional note) for (this order made by "[^"]+")$/
  */
 public function theCustomerServiceShouldKnowAboutThisAdditionalNotes(UserInterface $user, $note, OrderInterface $order)
 {
     $this->securityService->performActionAs($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));
     });
 }
Пример #2
0
 /**
  * @Given /^(this user) bought this product$/
  */
 public function thisUserBought(UserInterface $user)
 {
     $this->securityService->performActionAs($user, function () {
         $this->iProceedSelectingPaymentMethod();
         $this->iConfirmMyOrder();
     });
 }
Пример #3
0
 /**
  * @Given /^(this user) has ("[^"]+" product) in the cart$/
  */
 public function thisUserHasProductInTheCart(UserInterface $user, ProductInterface $product)
 {
     $this->securityService->performActionAs($user, function () use($product) {
         $this->iAddProductToTheCart($product);
     });
 }