Skip to content

Commit 62d4261

Browse files
committed
PWA-2137: [GraphQL] Need to bypass webonyx type validation
- fix static failures
1 parent edc8508 commit 62d4261

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/GraphQlTypeValidationTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public function testIntegerExpectedWhenFloatProvided()
6868
'currentPage' => 1.1
6969
];
7070
$this->expectException(\Exception::class);
71-
$this->expectExceptionMessage('Variable "$currentPage" got invalid value 1.1; Expected type Int; Int cannot represent non-integer value: 1.1');
71+
$this->expectExceptionMessage('Variable "$currentPage" got invalid value 1.1; Expected type Int; ' .
72+
'Int cannot represent non-integer value: 1.1');
7273
$this->graphQlQuery($query, $variables);
7374
}
7475

@@ -191,7 +192,8 @@ public function testStringExpectedWhenArrayProvided()
191192
'quantity' => '5.60'
192193
];
193194
$this->expectException(\Exception::class);
194-
$this->expectExceptionMessage('Variable "$sku" got invalid value ["123.78"]; Expected type String; String cannot represent a non string value: ["123.78"]');
195+
$this->expectExceptionMessage('Variable "$sku" got invalid value ["123.78"]; Expected type String; ' .
196+
'String cannot represent a non string value: ["123.78"]');
195197
$this->graphQlMutation($query, $variables);
196198
}
197199

@@ -213,7 +215,8 @@ public function testFloatExpectedWhenNonNumericStringProvided()
213215
'quantity' => 'ten'
214216
];
215217
$this->expectException(\Exception::class);
216-
$this->expectExceptionMessage('Variable "$quantity" got invalid value "ten"; Expected type Float; Float cannot represent non numeric value: ten');
218+
$this->expectExceptionMessage('Variable "$quantity" got invalid value "ten"; Expected type Float; ' .
219+
'Float cannot represent non numeric value: ten');
217220
$this->graphQlMutation($query, $variables);
218221
}
219222

lib/internal/Magento/Framework/GraphQlSchemaStitching/GraphQlReader.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ class GraphQlReader implements ReaderInterface
3333
public const GRAPHQL_INTERFACE = 'graphql_interface';
3434

3535
/**
36-
* File locator
37-
*
3836
* @var FileResolverInterface
3937
*/
4038
private $fileResolver;

0 commit comments

Comments
 (0)