Skip to content

Commit c14e389

Browse files
committed
MC-33071: Stabilize Web-API tests
1 parent 039a827 commit c14e389

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev/tests/api-functional/testsuite/Magento/Analytics/Api/LinkProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testGetAll()
6767
try {
6868
$this->_webApiCall($serviceInfo);
6969
} catch (\Exception $e) {
70-
$this->assertContains(
70+
$this->assertStringContainsString(
7171
'Operation allowed only in HTTPS',
7272
$e->getMessage()
7373
);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public function testGetChildren()
5858
$this->assertArrayHasKey('updated_at', $product);
5959

6060
$this->assertArrayHasKey('name', $product);
61-
$this->assertContains('Configurable Option', $product['name']);
61+
$this->assertStringContainsString('Configurable Option', $product['name']);
6262

6363
$this->assertArrayHasKey('sku', $product);
64-
$this->assertContains('simple_', $product['sku']);
64+
$this->assertStringContainsString('simple_', $product['sku']);
6565

6666
$this->assertArrayHasKey('status', $product);
6767
$this->assertEquals('1', $product['status']);

0 commit comments

Comments
 (0)