/**
  * Get fields for products
  *
  * @param array $productIds
  *
  * @return array
  */
 public function getFieldsList($productIds)
 {
     $this->prepareAvailableAttributeIds($productIds);
     $attributes = $this->getAttributeIds();
     if (empty($attributes)) {
         return [];
     }
     $attributes = $this->productManager->getAttributeRepository()->findBy(['id' => $this->getAttributeIds()]);
     return $this->prepareFieldsList($attributes);
 }
 function let(ProductManagerInterface $productManager, LocaleManager $localeManager, CurrencyManager $currencyManager, AssociationTypeManager $assocTypeManager, CatalogContext $catalogContext, ProductRepositoryInterface $productRepository, ObjectRepository $attributeRepository)
 {
     $productManager->getProductRepository()->willReturn($productRepository);
     $productManager->getAttributeRepository()->willReturn($attributeRepository);
     $this->beConstructedWith($productManager, $localeManager, $currencyManager, $assocTypeManager, $catalogContext);
 }