Commit 0affeb1f by Qiang Xue

Fixed test break.

parent aa31b56a
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment