Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

testcase for incorrect merge of post data

  • Loading branch information...
commit 836f913a64930b91fa6d8350b3f8880f76f525ab 1 parent 89df484
@ceeram ceeram authored markstory committed
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']);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.