File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Swatches Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ public function testTextSwatchDataValues()
42
42
{
43
43
products(filter: {sku: {eq: " $ productSku"}}) {
44
44
items {
45
- ... on ConfigurableProduct{
45
+ ... on ConfigurableProduct{
46
46
configurable_options{
47
47
values {
48
48
swatch_data{
49
49
value
50
50
}
51
- }
51
+ }
52
52
}
53
53
}
54
54
}
@@ -86,7 +86,7 @@ public function testVisualSwatchDataValues()
86
86
{
87
87
products(filter: {sku: {eq: " $ productSku"}}) {
88
88
items {
89
- ... on ConfigurableProduct{
89
+ ... on ConfigurableProduct{
90
90
configurable_options{
91
91
values {
92
92
swatch_data{
@@ -95,7 +95,7 @@ public function testVisualSwatchDataValues()
95
95
thumbnail
96
96
}
97
97
}
98
- }
98
+ }
99
99
}
100
100
}
101
101
}
@@ -115,7 +115,7 @@ public function testVisualSwatchDataValues()
115
115
$ option = $ product ['configurable_options ' ][0 ];
116
116
$ this ->assertArrayHasKey ('values ' , $ option );
117
117
$ this ->assertEquals ($ color , $ option ['values ' ][0 ]['swatch_data ' ]['value ' ]);
118
- $ this ->assertContains (
118
+ $ this ->assertStringContainsString (
119
119
$ option ['values ' ][1 ]['swatch_data ' ]['value ' ],
120
120
$ this ->swatchMediaHelper ->getSwatchAttributeImage (Swatch::SWATCH_IMAGE_NAME , $ imageName )
121
121
);
You can’t perform that action at this time.
0 commit comments