9 use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
10 use Magento\Cms\Test\Page\CmsIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 use Magento\Mtf\Fixture\InjectableFixture;
28 CatalogCategoryView $catalogCategoryView,
32 $cmsIndex->getTopmenu()->selectCategoryByName(
$product->getCategoryIds()[0]);
33 $src = $catalogCategoryView->getListProductBlock()->getProductItem(
$product)->getBaseImageSource();
34 \PHPUnit\Framework\Assert::assertTrue(
35 strpos($src,
'/placeholder/') !==
false,
36 'Product image is displayed on category view when it should not.' 47 return 'No product images is displayed on category view.';
processAssert(CmsIndex $cmsIndex, CatalogCategoryView $catalogCategoryView, InjectableFixture $product)