diff --git a/tests/TestCase/Http/ServerRequestTest.php b/tests/TestCase/Http/ServerRequestTest.php index 06eff0887fa..d469ba4586b 100644 --- a/tests/TestCase/Http/ServerRequestTest.php +++ b/tests/TestCase/Http/ServerRequestTest.php @@ -2421,6 +2421,14 @@ public function testGetQuery() ]; $request = new ServerRequest($array); + $this->assertEquals([ + 'foo' => 'bar', + 'zero' => '0', + 'test' => [ + 'foo', 'bar' + ] + ], $request->getQuery()); + $this->assertSame('bar', $request->getQuery('foo')); $this->assertSame('0', $request->getQuery('zero')); $this->assertNull($request->getQuery('imaginary'));