Skip to content

Commit 95be3d3

Browse files
committed
MC-33071: Stabilize Web-API tests
1 parent c14e389 commit 95be3d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/OptionRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testGetUndefinedOption()
111111
try {
112112
$this->get($productSku, $attributeId);
113113
} catch (\SoapFault $e) {
114-
$this->assertContains(
114+
$this->assertStringContainsString(
115115
$expectedMessage,
116116
$e->getMessage(),
117117
'SoapFault does not contain expected message.'

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/ProductRepositoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public function testUpdateConfigurableProductLinksWithNonExistingProduct()
304304
$this->saveProduct($response);
305305
$this->fail("Expected exception");
306306
} catch (\SoapFault $e) {
307-
$this->assertContains(
307+
$this->assertStringContainsString(
308308
$expectedMessage,
309309
$e->getMessage(),
310310
"SoapFault does not contain expected message."
@@ -347,7 +347,7 @@ public function testUpdateConfigurableProductLinksWithDuplicateAttributes()
347347
$this->saveProduct($response);
348348
$this->fail("Expected exception");
349349
} catch (\SoapFault $e) {
350-
$this->assertContains(
350+
$this->assertStringContainsString(
351351
$expectedMessage,
352352
$e->getMessage(),
353353
"SoapFault does not contain expected message."
@@ -380,7 +380,7 @@ public function testUpdateConfigurableProductLinksWithWithoutVariationAttributes
380380
$this->saveProduct($response);
381381
$this->fail("Expected exception");
382382
} catch (\SoapFault $e) {
383-
$this->assertContains(
383+
$this->assertStringContainsString(
384384
$expectedMessage,
385385
$e->getMessage(),
386386
"SoapFault does not contain expected message."

0 commit comments

Comments
 (0)