/** * Look on the scope of product attribute in the grid. * * @param CatalogProductAttributeIndex $catalogProductAttributeIndex * @param CatalogProductAttribute $attribute * @return void */ public function processAssert(CatalogProductAttributeIndex $catalogProductAttributeIndex, CatalogProductAttribute $attribute) { $filter = ['frontend_label' => $attribute->getFrontendLabel(), 'is_global' => $attribute->getIsGlobal()]; \PHPUnit_Framework_Assert::assertTrue($catalogProductAttributeIndex->open()->getGrid()->isRowVisible($filter), 'Attribute is not global.'); }