/** * @When I add it * @When I try to add it */ public function iAddIt() { $this->createPage->create(); }
/** * @Then I should be notified that customer group with this code already exists */ public function iShouldBeNotifiedThatCustomerGroupWithThisCodeAlreadyExists() { Assert::same($this->createPage->getValidationMessage('code'), 'Customer group code has to be unique.'); }