Skip to content
Permalink
Browse files

fixed expected and result order in asserts, also added extra test

  • Loading branch information...
ceeram authored and markstory committed Feb 22, 2012
1 parent 836f913 commit 6d3c65926055f542b64be7e56e2c6383c9fb097f
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/Cake/Test/Case/Network/CakeRequestTest.php
@@ -172,7 +172,7 @@ public function testPostParsing() {
'Article' => array('title')
));
$request = new CakeRequest('some/path');
$this->assertEquals($request->data, $_POST['data']);
$this->assertEquals($_POST['data'], $request->data);
$_POST = array('one' => 1, 'two' => 'three');
$request = new CakeRequest('some/path');
@@ -197,6 +197,13 @@ public function testPostParsing() {
));
$request = new CakeRequest('some/path');
$this->assertEquals($request->data, $_POST['data']);
$_POST = array('data' => array(
'Article' => array('title' => 'some title'),
'Tag' => array('Tag' => array(1, 2))
));
$request = new CakeRequest('some/path');
$this->assertEquals($request->data, $_POST['data']);
}
/**

1 comment on commit 6d3c659

@ceeram

This comment has been minimized.

Copy link
Member Author

commented on 6d3c659 Feb 23, 2012

@markstory the branch which fixed the issue had 4 commits, you only merged 2 of them to 2.0 causing a fail

Please sign in to comment.
You can’t perform that action at this time.