Skip to content

Commit

Permalink
Deleted rows in ModelReadTest
Browse files Browse the repository at this point in the history
  • Loading branch information
k-halaburda committed Aug 13, 2013
1 parent 0c1dbde commit a6efcae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -6302,7 +6302,7 @@ public function testBuildQuery() {
$this->loadFixtures('User');
$TestModel = new User();
$TestModel->cacheQueries = false;

$TestModel->order = null;
$expected = array(
'conditions' => array(
'user' => 'larry'
Expand Down Expand Up @@ -6848,7 +6848,7 @@ public function testFindField() {
'user' => 'mariano'
));
$this->assertEquals('mariano', $result);

$TestModel->order = null;
$result = $TestModel->field('COUNT(*) AS count', true);
$this->assertEquals(4, $result);

Expand Down Expand Up @@ -6904,6 +6904,7 @@ public function testFindCount() {
$this->assertNotRegExp('/ORDER\s+BY/', $log['log'][0]['query']);

$Article = new Article();
$Article->order = null;
$Article->recursive = -1;
$expected = count($Article->find('all', array(
'fields' => array('Article.user_id'),
Expand Down Expand Up @@ -7760,6 +7761,7 @@ public function testVirtualFields() {
'limit' => 1
));
$this->assertEquals(2, $result['Post']['id']);
$Post->order = null;

$Post->virtualFields = array('other_field' => 'Post.id + 1');
$result = $Post->find('all', array(
Expand Down

0 comments on commit a6efcae

Please sign in to comment.