mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-20 10:27:18 +08:00
Fixed test break.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user