mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing code formatting in test cases.
This commit is contained in:
parent
07948a733d
commit
66a8890f4f
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue