diff --git a/lib/Cake/Test/Case/Network/CakeRequestTest.php b/lib/Cake/Test/Case/Network/CakeRequestTest.php index c54851374..8a050235d 100644 --- a/lib/Cake/Test/Case/Network/CakeRequestTest.php +++ b/lib/Cake/Test/Case/Network/CakeRequestTest.php @@ -2081,7 +2081,7 @@ class CakeRequestTest extends CakeTestCase { /** * Data provider for testing reading values with CakeRequest::param() - * + * * @return array */ public function paramReadingDataProvider() { @@ -2218,6 +2218,22 @@ class CakeRequestTest extends CakeTestCase { $this->assertEquals('/posts/base_path/1/name:value?test=value', $result); } +/** + * Test the input() method. + * + * @return void + */ + public function testSetInput() { + $request = new CakeRequest('/'); + + $request->setInput('I came from setInput'); + $result = $request->input(); + $this->assertEquals('I came from setInput', $result); + + $result = $request->input(); + $this->assertEquals('I came from setInput', $result); + } + /** * Test the input() method. *