Skip to content

Commit 50204d9

Browse files
committed
AC-14269: [GraphQl] Route query infinite loop
Fix static test failure
1 parent a83a2b1 commit 50204d9

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

app/code/Magento/UrlRewriteGraphQl/Test/Unit/Model/Resolver/AbstractEntityUrlTest.php

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525
/**
2626
* Unit test for AbstractEntityUrl resolver
27+
*
28+
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
29+
* @SuppressWarnings(PHPMD.TooManyFields)
30+
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
2731
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2832
*/
2933
class AbstractEntityUrlTest extends TestCase
@@ -625,11 +629,25 @@ public function testParseUrlHandlesVariousUrlFormats(): void
625629
// URL with host (should preserve path parsing)
626630
'https://example.com/path' => ['scheme' => 'https', 'host' => 'example.com', 'path' => 'path'],
627631
// URL with port
628-
'http://example.com:8080/path' => ['scheme' => 'http', 'host' => 'example.com', 'port' => 8080, 'path' => 'path'],
632+
'http://example.com:8080/path' => [
633+
'scheme' => 'http',
634+
'host' => 'example.com',
635+
'port' => 8080,
636+
'path' => 'path'
637+
],
629638
// URL with user info
630-
'https://user:[email protected]/path' => ['scheme' => 'https', 'user' => 'user', 'pass' => 'pass', 'host' => 'example.com', 'path' => 'path'],
639+
'https://user:[email protected]/path' => [
640+
'scheme' => 'https',
641+
'user' => 'user',
642+
'pass' => 'pass',
643+
'host' => 'example.com',
644+
'path' => 'path'
645+
],
631646
// Complex query string
632-
'product?color=red&size=large&in_stock=1' => ['path' => 'product', 'query' => 'color=red&size=large&in_stock=1'],
647+
'product?color=red&size=large&in_stock=1' => [
648+
'path' => 'product',
649+
'query' => 'color=red&size=large&in_stock=1'
650+
],
633651
// Path with encoded characters
634652
'category/special%20products' => ['path' => 'category/special%20products'],
635653
// Multiple slashes in path

0 commit comments

Comments
 (0)