Skip to content

Commit 40dc68f

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Swatches/ProductSwatchDataTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ public function testTextSwatchDataValues()
4242
{
4343
products(filter: {sku: {eq: "$productSku"}}) {
4444
items {
45-
... on ConfigurableProduct{
45+
... on ConfigurableProduct{
4646
configurable_options{
4747
values {
4848
swatch_data{
4949
value
5050
}
51-
}
51+
}
5252
}
5353
}
5454
}
@@ -86,7 +86,7 @@ public function testVisualSwatchDataValues()
8686
{
8787
products(filter: {sku: {eq: "$productSku"}}) {
8888
items {
89-
... on ConfigurableProduct{
89+
... on ConfigurableProduct{
9090
configurable_options{
9191
values {
9292
swatch_data{
@@ -95,7 +95,7 @@ public function testVisualSwatchDataValues()
9595
thumbnail
9696
}
9797
}
98-
}
98+
}
9999
}
100100
}
101101
}
@@ -115,7 +115,7 @@ public function testVisualSwatchDataValues()
115115
$option = $product['configurable_options'][0];
116116
$this->assertArrayHasKey('values', $option);
117117
$this->assertEquals($color, $option['values'][0]['swatch_data']['value']);
118-
$this->assertContains(
118+
$this->assertStringContainsString(
119119
$option['values'][1]['swatch_data']['value'],
120120
$this->swatchMediaHelper->getSwatchAttributeImage(Swatch::SWATCH_IMAGE_NAME, $imageName)
121121
);

0 commit comments

Comments
 (0)