Skip to content
This repository
Browse code

testcase for incorrect merge of post data

  • Loading branch information...
commit 836f913a64930b91fa6d8350b3f8880f76f525ab 1 parent 89df484
ceeram authored February 22, 2012 markstory committed February 23, 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 836f913

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