Author: Grzegorz Sadowski (grzegorz.sadowski@lakion.com)
Inheritance: extends Sylius\Behat\Page\Admin\Crud\CreatePageInterface
 /**
  * @Then I should be notified that payment method with this code already exists
  */
 public function iShouldBeNotifiedThatPaymentMethodWithThisCodeAlreadyExists()
 {
     Assert::same($this->createPage->getValidationMessage('code'), 'The payment method with given code already exists.');
 }
 /**
  * @Then I should be notified that payment method with this code already exists
  */
 public function iShouldBeNotifiedThatPaymentMethodWithThisCodeAlreadyExists()
 {
     Assert::true($this->createPage->checkValidationMessageFor('code', 'The payment method with given code already exists.'), 'Unique code violation message should appear on page, but it does not.');
 }