We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdbf988 commit fe62842Copy full SHA for fe62842
dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php
@@ -347,9 +347,12 @@ public function testUpdateCustomerNoWebsiteId()
347
unset($newCustomerDataObject['website_id']);
348
$requestData = ['customer' => $newCustomerDataObject];
349
350
- $response = $this->_webApiCall($serviceInfo, $requestData);
351
-
352
- $this->assertEquals($customerData['website_id'], $response['website_id']);
+ try {
+ $response = $this->_webApiCall($serviceInfo, $requestData);
+ $this->assertEquals($customerData['website_id'], $response['website_id']);
353
+ } catch (\SoapFault $e) {
354
+ $this->assertStringContainsString('"Associate to Website" is a required value.', $e->getMessage());
355
+ }
356
}
357
358
/**
0 commit comments