testcase for incorrect merge of post data

This commit is contained in:
Ceeram 2012-02-22 21:53:51 +01:00 committed by mark_story
parent 89df484fc5
commit 836f913a64

View file

@ -190,6 +190,13 @@ class CakeRequestTest extends CakeTestCase {
'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']);
}
/**