/** * Two custom attributes are created, one for customer and another for customer address. * * Attribute related to customer address should be returned only. * * @magentoDataFixture Magento/Customer/_files/attribute_user_defined_address.php * @magentoDataFixture Magento/Customer/_files/attribute_user_defined_customer.php */ public function testGetCustomAttributesCodes() { $userDefinedAttributeCode = 'address_user_attribute'; $attributeCodes = $this->_addressBuilder->getCustomAttributesCodes(); $expectedAttributes = [$userDefinedAttributeCode]; $this->assertEquals($expectedAttributes, $attributeCodes, 'Custom attribute codes list is invalid.'); }