Definition at line 9 of file AttributeManagementTest.php.
◆ setUp()
Definition at line 21 of file AttributeManagementTest.php.
24 $this->model = $this->objectManager->create(\
Magento\Eav\Api\AttributeManagementInterface::class);
static getObjectManager()
◆ testGetList()
Verify that collection in service used correctly
Definition at line 30 of file AttributeManagementTest.php.
32 $productAttributeSetId = $this->getAttributeSetId(
33 \
Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE
35 $productAttributes = $this->model->getAttributes(
36 \
Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE,
37 $productAttributeSetId
40 $this->verifyAttributeSetIds($productAttributes, $productAttributeSetId);
42 $categoryAttributeSetId = $this->getAttributeSetId(
43 \
Magento\Catalog\Api\Data\CategoryAttributeInterface::ENTITY_TYPE_CODE
45 $categoryAttributes = $this->model->getAttributes(
46 \
Magento\Catalog\Api\Data\CategoryAttributeInterface::ENTITY_TYPE_CODE,
47 $categoryAttributeSetId
50 $this->verifyAttributeSetIds($categoryAttributes, $categoryAttributeSetId);
The documentation for this class was generated from the following file: