/** * Prepare available attribute ids * * @param array $productIds */ protected function prepareAvailableAttributeIds($productIds) { $this->attributeIds = $this->productManager->getProductRepository()->getAvailableAttributeIdsToExport($productIds); }
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); }