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
parent d5cdc46661
commit 2e2ee3b096

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);
}
/**