From 18c878b3f55af7db04f2b89a4ae7552613820663 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 18 Dec 2009 19:18:23 -0500 Subject: [PATCH] More whitespace fixes. --- .../cases/libs/model/datasources/dbo_source.test.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cake/tests/cases/libs/model/datasources/dbo_source.test.php b/cake/tests/cases/libs/model/datasources/dbo_source.test.php index a786fda32..71d9b483d 100644 --- a/cake/tests/cases/libs/model/datasources/dbo_source.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo_source.test.php @@ -4206,22 +4206,22 @@ class DboSourceTest extends CakeTestCase { * @return void */ function testVirtualFieldsFetch() { - $this->loadFixtures('Article','Comment'); + $this->loadFixtures('Article', 'Comment'); $Article =& ClassRegistry::init('Article'); $Article->virtualFields = array( 'comment_count' => 'SELECT COUNT(*) FROM ' . $this->db->fullTableName('comments') . - ' WHERE Article.id = ' . $this->db->fullTableName('comments'). '.article_id' + ' WHERE Article.id = ' . $this->db->fullTableName('comments') . '.article_id' ); $conditions = array('comment_count >' => 2); - $query = 'SELECT ' . join(',',$this->db->fields($Article,null,array('id','comment_count'))) . - ' FROM ' . $this->db->fullTableName($Article) . ' Article ' . $this->db->conditions($conditions,true,true,$Article); + $query = 'SELECT ' . join(',',$this->db->fields($Article, null, array('id', 'comment_count'))) . + ' FROM ' . $this->db->fullTableName($Article) . ' Article ' . $this->db->conditions($conditions, true, true, $Article); $result = $this->db->fetchAll($query); $expected = array(array( 'Article' => array('id' => 1, 'comment_count' => 4) )); - $this->assertEqual($expected,$result); + $this->assertEqual($expected, $result); } } ?> \ No newline at end of file