Skip to content

Commit 514cacd

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-37614: Stabilize story
1 parent 46aba35 commit 514cacd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementCustomAttributesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function testUpdateCustomerWithImageAttribute()
270270
$mediaDirectory = $this->fileSystem->getDirectoryWrite(DirectoryList::MEDIA);
271271
$customerMediaPath = $mediaDirectory->getAbsolutePath(CustomerMetadataInterface::ENTITY_TYPE_CUSTOMER);
272272
$previousImagePath =
273-
$previousCustomerData[CustomAttributesDataInterface::CUSTOM_ATTRIBUTES][1][AttributeValue::VALUE];
273+
$previousCustomerData[CustomAttributesDataInterface::CUSTOM_ATTRIBUTES][0][AttributeValue::VALUE];
274274
$this->assertFalse(file_exists($customerMediaPath . $previousImagePath));
275275
}
276276
}

dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerMetadataTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getAttributeMetadataDataProvider()
8080
AttributeMetadata::NOTE => '',
8181
AttributeMetadata::SYSTEM => true,
8282
AttributeMetadata::USER_DEFINED => false,
83-
AttributeMetadata::BACKEND_TYPE => 'varchar',
83+
AttributeMetadata::BACKEND_TYPE => 'static',
8484
AttributeMetadata::SORT_ORDER => 40
8585
],
8686
],
@@ -106,7 +106,7 @@ public function getAttributeMetadataDataProvider()
106106
AttributeMetadata::NOTE => '',
107107
AttributeMetadata::SYSTEM => false,
108108
AttributeMetadata::USER_DEFINED => false,
109-
AttributeMetadata::BACKEND_TYPE => 'int',
109+
AttributeMetadata::BACKEND_TYPE => 'static',
110110
AttributeMetadata::SORT_ORDER => 110
111111
],
112112
],
@@ -187,9 +187,8 @@ public function testGetCustomAttributesMetadata()
187187

188188
$attributeMetadata = $this->_webApiCall($serviceInfo);
189189

190-
//Default custom attribute code 'disable_auto_group_change'
191-
$this->assertCount(1, $attributeMetadata);
192-
$this->assertEquals('disable_auto_group_change', $attributeMetadata[0]['attribute_code']);
190+
// There are no default custom attributes.
191+
$this->assertCount(0, $attributeMetadata);
193192
}
194193

195194
/**

0 commit comments

Comments
 (0)