Skip to content
This repository
Browse code

testcase for incorrect merge of post data

  • Loading branch information...
commit 44ea3fb12288bda51fde9eb715a0f47ea5810d70 1 parent b730285
ceeram authored February 22, 2012
7  lib/Cake/Test/Case/Network/CakeRequestTest.php
@@ -190,6 +190,13 @@ public function testPostParsing() {
190 190
 			'action' => 'update'
191 191
 		);
192 192
 		$this->assertEquals($expected, $request->data);
  193
+
  194
+		$_POST = array('data' => array(
  195
+			'Article' => array('title'),
  196
+			'Tag' => array('Tag' => array(1, 2))
  197
+		));
  198
+		$request = new CakeRequest('some/path');
  199
+		$this->assertEquals($request->data, $_POST['data']);
193 200
 	}
194 201
 
195 202
 /**

0 notes on commit 44ea3fb

Please sign in to comment.
Something went wrong with that request. Please try again.