Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

testcase for incorrect merge of post data

  • Loading branch information...
commit 44ea3fb12288bda51fde9eb715a0f47ea5810d70 1 parent b730285
@ceeram ceeram authored
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.