Sylius\Behat\Page\Admin\Order\ShowPageInterface::hasNote PHP Method

hasNote() public method

public hasNote ( string $note ) : boolean
$note string
return boolean
    public function hasNote($note);

Usage Example

Esempio n. 1
0
 /**
  * @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));
     });
 }