Browse Source

Fixed test break.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
0affeb1f84
  1. 2
      tests/unit/framework/data/ActiveDataProviderTest.php

2
tests/unit/framework/data/ActiveDataProviderTest.php

@ -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,

Loading…
Cancel
Save