From a6efcae62597a9c7f35d2bd401557c17da373b19 Mon Sep 17 00:00:00 2001 From: k-halaburda Date: Tue, 13 Aug 2013 12:32:36 +0200 Subject: [PATCH] Deleted rows in ModelReadTest --- lib/Cake/Test/Case/Model/ModelReadTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Model/ModelReadTest.php b/lib/Cake/Test/Case/Model/ModelReadTest.php index e8bacb68333..5aeb551c73d 100644 --- a/lib/Cake/Test/Case/Model/ModelReadTest.php +++ b/lib/Cake/Test/Case/Model/ModelReadTest.php @@ -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' @@ -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); @@ -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'), @@ -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(