mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
testcase for incorrect merge of post data
This commit is contained in:
parent
89df484fc5
commit
836f913a64
1 changed files with 7 additions and 0 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue