From 0affeb1f84d7ee65464024a827ced7b650fe71fc Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 9 Jul 2013 09:37:29 -0400 Subject: [PATCH] Fixed test break. --- tests/unit/framework/data/ActiveDataProviderTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/framework/data/ActiveDataProviderTest.php b/tests/unit/framework/data/ActiveDataProviderTest.php index 608fed6..7df2983 100644 --- a/tests/unit/framework/data/ActiveDataProviderTest.php +++ b/tests/unit/framework/data/ActiveDataProviderTest.php @@ -49,6 +49,7 @@ class ActiveDataProviderTest extends DatabaseTestCase { $query = new Query; $provider = new ActiveDataProvider(array( + 'db' => $this->getConnection(), 'query' => $query->from('tbl_order')->orderBy('id'), )); $orders = $provider->getItems(); @@ -58,6 +59,7 @@ class ActiveDataProviderTest extends DatabaseTestCase $query = new Query; $provider = new ActiveDataProvider(array( + 'db' => $this->getConnection(), 'query' => $query->from('tbl_order'), 'pagination' => array( 'pageSize' => 2,