Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertProductsInGrid.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 
16 class AssertProductsInGrid extends AbstractConstraint
17 {
26  public function processAssert(
27  CatalogProductIndex $productIndex,
28  AssertProductInGrid $assertProductInGrid,
29  array $entities
30  ) {
31  foreach ($entities as $entity) {
32  $assertProductInGrid->processAssert($entity, $productIndex);
33  }
34  }
35 
41  public function toString()
42  {
43  return 'Products are present in products grid.';
44  }
45 }
processAssert(FixtureInterface $product, CatalogProductIndex $productIndex)
processAssert(CatalogProductIndex $productIndex, AssertProductInGrid $assertProductInGrid, array $entities)
$entity
Definition: element.phtml:22