Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing code formatting in test cases.

  • Loading branch information...
commit 66a8890f4fcc6c8271da2181ac66deb1f7291772 1 parent 07948a7
Mark Story markstory authored
2  cake/tests/cases/libs/model/datasources/dbo_source.test.php
View
@@ -4316,7 +4316,7 @@ function testVirtualFieldsInConditions() {
' WHERE Article.id = ' . $this->db->fullTableName('comments') . '.article_id'
);
$conditions = array('two' => 2);
- $result = $this->db->conditions($conditions,true,false,$Article);
+ $result = $this->db->conditions($conditions, true, false, $Article);
$expected = '(1 + 1) = 2';
$this->assertEqual($expected, $result);
4 cake/tests/cases/libs/model/model_read.test.php
View
@@ -7223,7 +7223,7 @@ function testVirtualFields() {
$dbo =& $Post->getDataSource();
$Post->virtualFields = array('other_field' => 'Post.id + 1');
- $result = $Post->find('first',array(
+ $result = $Post->find('first', array(
'conditions' => array('other_field' => 3),
'limit' => 1
));
@@ -7231,7 +7231,7 @@ function testVirtualFields() {
$Post->virtualFields = array('other_field' => 'Post.id + 1');
$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);
Please sign in to comment.
Something went wrong with that request. Please try again.