Fixing code formatting in test cases.

This commit is contained in:
mark_story 2010-05-30 12:51:48 -04:00
parent 07948a733d
commit 66a8890f4f
2 changed files with 3 additions and 3 deletions

View file

@ -4316,7 +4316,7 @@ class DboSourceTest extends CakeTestCase {
' WHERE Article.id = ' . $this->db->fullTableName('comments') . '.article_id' ' WHERE Article.id = ' . $this->db->fullTableName('comments') . '.article_id'
); );
$conditions = array('two' => 2); $conditions = array('two' => 2);
$result = $this->db->conditions($conditions,true,false,$Article); $result = $this->db->conditions($conditions, true, false, $Article);
$expected = '(1 + 1) = 2'; $expected = '(1 + 1) = 2';
$this->assertEqual($expected, $result); $this->assertEqual($expected, $result);

View file

@ -7223,7 +7223,7 @@ class ModelReadTest extends BaseModelTest {
$dbo =& $Post->getDataSource(); $dbo =& $Post->getDataSource();
$Post->virtualFields = array('other_field' => 'Post.id + 1'); $Post->virtualFields = array('other_field' => 'Post.id + 1');
$result = $Post->find('first',array( $result = $Post->find('first', array(
'conditions' => array('other_field' => 3), 'conditions' => array('other_field' => 3),
'limit' => 1 'limit' => 1
)); ));
@ -7231,7 +7231,7 @@ class ModelReadTest extends BaseModelTest {
$Post->virtualFields = array('other_field' => 'Post.id + 1'); $Post->virtualFields = array('other_field' => 'Post.id + 1');
$result = $Post->find('all',array( $result = $Post->find('all',array(
'fields' => array($dbo->calculate($Post, 'max',array('other_field'))) 'fields' => array($dbo->calculate($Post, 'max', array('other_field')))
)); ));
$this->assertEqual($result[0][0]['other_field'], 4); $this->assertEqual($result[0][0]['other_field'], 4);