public getAttributeByName ( string $attributeName ) : string | ||
$attributeName | string | |
return | string |
/** * @Then I should see the product attribute :attributeName with value :expectedAttribute */ public function iShouldSeeTheProductAttributeWithValue($attributeName, $expectedAttribute) { $certainAttribute = $this->showPage->getAttributeByName($attributeName); Assert::same($certainAttribute, $expectedAttribute, sprintf('Product should have attribute %s with value %s, but has %s.', $attributeName, $expectedAttribute, $certainAttribute)); }