Permalink
Browse files

testcase for incorrect merge of post data

  • Loading branch information...
1 parent 89df484 commit 836f913a64930b91fa6d8350b3f8880f76f525ab @ceeram ceeram committed with markstory Feb 22, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/Cake/Test/Case/Network/CakeRequestTest.php
View
7 lib/Cake/Test/Case/Network/CakeRequestTest.php
@@ -190,6 +190,13 @@ public function testPostParsing() {
'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']);
}
/**

0 comments on commit 836f913

Please sign in to comment.