getAttributeByName() public method

public getAttributeByName ( string $attributeName ) : string
$attributeName string
return string
コード例 #1
0
ファイル: ProductContext.php プロジェクト: sylius/sylius
 /**
  * @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));
 }