|
|
@ -49,6 +49,7 @@ class ActiveDataProviderTest extends DatabaseTestCase |
|
|
|
{ |
|
|
|
{ |
|
|
|
$query = new Query; |
|
|
|
$query = new Query; |
|
|
|
$provider = new ActiveDataProvider(array( |
|
|
|
$provider = new ActiveDataProvider(array( |
|
|
|
|
|
|
|
'db' => $this->getConnection(), |
|
|
|
'query' => $query->from('tbl_order')->orderBy('id'), |
|
|
|
'query' => $query->from('tbl_order')->orderBy('id'), |
|
|
|
)); |
|
|
|
)); |
|
|
|
$orders = $provider->getItems(); |
|
|
|
$orders = $provider->getItems(); |
|
|
@ -58,6 +59,7 @@ class ActiveDataProviderTest extends DatabaseTestCase |
|
|
|
|
|
|
|
|
|
|
|
$query = new Query; |
|
|
|
$query = new Query; |
|
|
|
$provider = new ActiveDataProvider(array( |
|
|
|
$provider = new ActiveDataProvider(array( |
|
|
|
|
|
|
|
'db' => $this->getConnection(), |
|
|
|
'query' => $query->from('tbl_order'), |
|
|
|
'query' => $query->from('tbl_order'), |
|
|
|
'pagination' => array( |
|
|
|
'pagination' => array( |
|
|
|
'pageSize' => 2, |
|
|
|
'pageSize' => 2, |
|
|
|