/** * @Then /^(this customer group) should still be named "([^"]+)"$/ */ public function thisChannelNameShouldBe(CustomerGroupInterface $customerGroup, $customerGroupName) { $this->iWantToBrowseCustomerGroupsOfTheStore(); Assert::true($this->indexPage->isSingleResourceOnPage(['name' => $customerGroup->getName()]), sprintf('Customer group name %s has not been assigned properly.', $customerGroupName)); }
/** * @Then /^(this customer group) should no longer exist in the registry$/ */ public function thisCustomerGroupShouldNoLongerExistInTheRegistry(CustomerGroupInterface $customerGroup) { Assert::false($this->indexPage->isSingleResourceOnPage(['name' => $customerGroup->getName()]), sprintf('Customer group %s should no longer exist in the registry', $customerGroup->getName())); }