/** * @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.'); }