Skip to content

Commit 436e3d3

Browse files
MAGETWO-91725: Reward Points Balance Update Emails are not being sent when balance change initiated by store front
- Fix webapi test
1 parent b2d5f02 commit 436e3d3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Magento\Customer\Api\Data\CustomerInterface as Customer;
1010
use Magento\Customer\Model\Data\AttributeMetadata;
1111
use Magento\TestFramework\TestCase\WebapiAbstract;
12+
use Magento\TestFramework\Helper\Bootstrap;
1213

1314
/**
1415
* Class CustomerMetadataTest
@@ -19,6 +20,19 @@ class CustomerMetadataTest extends WebapiAbstract
1920
const SERVICE_VERSION = "V1";
2021
const RESOURCE_PATH = "/V1/attributeMetadata/customer";
2122

23+
/**
24+
* @var CustomerMetadataInterface
25+
*/
26+
private $customerMetadata;
27+
28+
/**
29+
* Execute per test initialization.
30+
*/
31+
public function setUp()
32+
{
33+
$this->customerMetadata = Bootstrap::getObjectManager()->create(CustomerMetadataInterface::class);
34+
}
35+
2236
/**
2337
* Test retrieval of attribute metadata for the customer entity type.
2438
*
@@ -200,8 +214,7 @@ public function testGetCustomAttributesMetadata()
200214

201215
$attributeMetadata = $this->_webApiCall($serviceInfo);
202216

203-
// There are no default custom attributes.
204-
$this->assertCount(0, $attributeMetadata);
217+
$this->assertCount(count($this->customerMetadata->getCustomAttributesMetadata()), $attributeMetadata);
205218
}
206219

207220
/**

0 commit comments

Comments
 (0)