From 836f913a64930b91fa6d8350b3f8880f76f525ab Mon Sep 17 00:00:00 2001 From: Ceeram Date: Wed, 22 Feb 2012 21:53:51 +0100 Subject: [PATCH] testcase for incorrect merge of post data --- lib/Cake/Test/Case/Network/CakeRequestTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Cake/Test/Case/Network/CakeRequestTest.php b/lib/Cake/Test/Case/Network/CakeRequestTest.php index d7fa4cbf0..96d3e249c 100644 --- a/lib/Cake/Test/Case/Network/CakeRequestTest.php +++ b/lib/Cake/Test/Case/Network/CakeRequestTest.php @@ -190,6 +190,13 @@ class CakeRequestTest extends CakeTestCase { 'action' => 'update' ); $this->assertEquals($expected, $request->data); + + $_POST = array('data' => array( + 'Article' => array('title'), + 'Tag' => array('Tag' => array(1, 2)) + )); + $request = new CakeRequest('some/path'); + $this->assertEquals($request->data, $_POST['data']); } /**