Skip to content

Commit f88a7c8

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-37614: Stabilize story
1 parent 191c27e commit f88a7c8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/CustomerMetadataTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function setUp()
4747
public function testGetCustomAttributesMetadata()
4848
{
4949
$customAttributesMetadata = $this->_service->getCustomAttributesMetadata();
50-
$this->assertCount(1, $customAttributesMetadata, "Invalid number of attributes returned.");
50+
$this->assertCount(0, $customAttributesMetadata, "Invalid number of attributes returned.");
5151
}
5252

5353
public function testGetNestedOptionsCustomAttributesMetadata()
@@ -106,7 +106,7 @@ public function testGetCustomerAttributeMetadata()
106106
'email' => 'customer@example.com',
107107
'default_billing' => '1',
108108
'default_shipping' => '1',
109-
'disable_auto_group_change' => '0',
109+
'disable_auto_group_change' => 0,
110110
];
111111

112112
$customer = $this->customerRepository->getById(1);
@@ -144,10 +144,13 @@ public function testGetCustomerAttributeMetadata()
144144
public function testGetCustomerAttributeMetadataNoSuchEntity()
145145
{
146146
try {
147-
$this->_service->getAttributeMetadata('20');
147+
$this->_service->getAttributeMetadata('wrong_attribute_code');
148148
$this->fail('Expected exception not thrown.');
149149
} catch (NoSuchEntityException $e) {
150-
$this->assertEquals('No such entity with entityType = customer, attributeCode = 20', $e->getMessage());
150+
$this->assertEquals(
151+
'No such entity with entityType = customer, attributeCode = wrong_attribute_code',
152+
$e->getMessage()
153+
);
151154
}
152155
}
153156

0 commit comments

Comments
 (0)