Skip to content
Permalink
Browse files

Add a zero test for Request::query()

  • Loading branch information...
dereuromark committed Sep 9, 2015
1 parent 5c7c7cf commit fe6b32f21a10cad269d57e933e564c1a96d6daf2
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/TestCase/Network/RequestTest.php
@@ -1932,12 +1932,15 @@ public function testEnvironmentDetection($name, $env, $expected)
public function testQuery()
{
$request = new Request([
'query' => ['foo' => 'bar']
'query' => ['foo' => 'bar', 'zero' => '0']
]);
$result = $request->query('foo');
$this->assertEquals('bar', $result);
$result = $request->query('zero');
$this->assertEquals('0', $result);
$result = $request->query('imaginary');
$this->assertNull($result);
}

0 comments on commit fe6b32f

Please sign in to comment.
You can’t perform that action at this time.