/** * @Then /^(this customer) should have "([^"]+)" as their group$/ */ public function thisCustomerShouldHaveAsTheirGroup(CustomerInterface $customer, $groupName) { $this->updatePage->open(['id' => $customer->getId()]); Assert::same($groupName, $this->updatePage->getGroupName(), sprintf('Customer should have %s as group, but it does not', $groupName)); }
/** * @Then this customer should be subscribed to the newsletter */ public function thisCustomerShouldBeSubscribedToTheNewsletter() { Assert::true($this->updatePage->isSubscribedToTheNewsletter(), 'This customer should subscribe to the newsletter.'); }
/** * @When I change my password to :password */ public function iSpecifyMyPasswordAs($password) { $this->updatePage->changePassword($password); }