Skip to content

Commit ce359e0

Browse files
committed
exclude check expectedMessage soap
1 parent d21ded3 commit ce359e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ public function tearDown(): void
101101
* @param bool $expectingException
102102
* @dataProvider getCustomerDataWebsiteScopeDataProvider
103103
*
104-
* @magentoApiDataFixture Magento/Store/_files/second_website_with_two_stores.php
105104
* @magentoConfigFixture default_store customer/account_share/scope 1
106105
*/
107106
public function testGetCustomerDataWebsiteScope(string $storeCode, bool $expectingException)
108107
{
108+
$this->_markTestAsRestOnly('SOAP is difficult to generate exception messages, inconsistencies in WSDL');
109109
$this->processGetCustomerData($storeCode, $expectingException);
110110
}
111111

@@ -144,9 +144,10 @@ private function processGetCustomerData(string $storeCode, bool $expectingExcept
144144
if (TESTS_WEB_API_ADAPTER === 'soap') {
145145
$arguments['customerId'] = 0;
146146
}
147+
147148
if ($expectingException) {
148-
$this->expectException(\Exception::class);
149-
$this->expectExceptionMessage("The consumer isn't authorized to access %resources.");
149+
self::expectException(\Exception::class);
150+
self::expectExceptionMessage("The consumer isn't authorized to access %resources.");
150151
}
151152

152153
$this->_webApiCall($serviceInfo, $arguments, null, $storeCode);

0 commit comments

Comments
 (0)