another attempy to set correc order for expected and result in assert, definitely time for some coffee

This commit is contained in:
Ceeram 2012-02-22 22:31:28 +01:00 committed by mark_story
parent 6d3c659260
commit 9d71df475d

View file

@ -196,14 +196,14 @@ class CakeRequestTest extends CakeTestCase {
'Tag' => array('Tag' => array(1, 2))
));
$request = new CakeRequest('some/path');
$this->assertEquals($request->data, $_POST['data']);
$this->assertEquals($_POST['data'], $request->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']);
$this->assertEquals($_POST['data'], $request->data);
}
/**