Skip to content

Commit

Permalink
testcase for incorrect merge of post data
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram authored and markstory committed Feb 23, 2012
1 parent 89df484 commit 836f913
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Cake/Test/Case/Network/CakeRequestTest.php
Expand Up @@ -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']);
}

/**
Expand Down

0 comments on commit 836f913

Please sign in to comment.