Updating model test for slow DB connections

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7028 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2008-05-23 14:48:55 +00:00
parent 54715db5dd
commit 88b16a1d6c

View file

@ -346,14 +346,14 @@ class ModelTest extends CakeTestCase {
$this->assertEqual($result, $expected); $this->assertEqual($result, $expected);
$ts = date('Y-m-d H:i:s');
$TestModel->id = 1; $TestModel->id = 1;
$data = array( $data = array(
'JoinA' => array('id' => '1', 'name' => 'New name for Join A 1'), 'JoinA' => array('id' => '1', 'name' => 'New name for Join A 1', 'updated' => $ts),
'JoinB' => array(array('id' => 1, 'join_b_id' => 2, 'other' => 'New data for Join A 1 Join B 2')), 'JoinB' => array(array('id' => 1, 'join_b_id' => 2, 'other' => 'New data for Join A 1 Join B 2', 'created' => $ts, 'updated' => $ts)),
'JoinC' => array(array('id' => 1, 'join_c_id' => 2, 'other' => 'New data for Join A 1 Join C 2'))); 'JoinC' => array(array('id' => 1, 'join_c_id' => 2, 'other' => 'New data for Join A 1 Join C 2', 'created' => $ts, 'updated' => $ts)));
$TestModel->set($data); $TestModel->set($data);
$TestModel->save(); $TestModel->save();
$ts = date('Y-m-d H:i:s');
$result = $TestModel->findById(1); $result = $TestModel->findById(1);
$expected = array( $expected = array(