Skip to content

Commit e9a919c

Browse files
committed
Revert unnecessary ActiveDataProviderTest changes
1 parent 0e6358d commit e9a919c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tests/framework/data/ActiveDataProviderTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ protected function setUp(): void
3535
public function testActiveQuery()
3636
{
3737
$provider = new ActiveDataProvider([
38-
'db' => $this->getConnection(),
3938
'query' => Order::find()->orderBy('id'),
4039
]);
4140
$orders = $provider->getModels();
@@ -46,7 +45,6 @@ public function testActiveQuery()
4645
$this->assertEquals([1, 2, 3], $provider->getKeys());
4746

4847
$provider = new ActiveDataProvider([
49-
'db' => $this->getConnection(),
5048
'query' => Order::find(),
5149
'pagination' => [
5250
'pageSize' => 2,
@@ -61,7 +59,6 @@ public function testActiveRelation()
6159
/* @var $customer Customer */
6260
$customer = Customer::findOne(2);
6361
$provider = new ActiveDataProvider([
64-
'db' => $this->getConnection(),
6562
'query' => $customer->getOrders(),
6663
]);
6764
$orders = $provider->getModels();
@@ -71,7 +68,6 @@ public function testActiveRelation()
7168
$this->assertEquals([2, 3], $provider->getKeys());
7269

7370
$provider = new ActiveDataProvider([
74-
'db' => $this->getConnection(),
7571
'query' => $customer->getOrders(),
7672
'pagination' => [
7773
'pageSize' => 1,
@@ -86,7 +82,6 @@ public function testActiveRelationVia()
8682
/* @var $order Order */
8783
$order = Order::findOne(2);
8884
$provider = new ActiveDataProvider([
89-
'db' => $this->getConnection(),
9085
'query' => $order->getItems(),
9186
]);
9287
$items = $provider->getModels();
@@ -97,7 +92,6 @@ public function testActiveRelationVia()
9792
$this->assertEquals([3, 4, 5], $provider->getKeys());
9893

9994
$provider = new ActiveDataProvider([
100-
'db' => $this->getConnection(),
10195
'query' => $order->getItems(),
10296
'pagination' => [
10397
'pageSize' => 2,
@@ -112,7 +106,6 @@ public function testActiveRelationViaTable()
112106
/* @var $order Order */
113107
$order = Order::findOne(1);
114108
$provider = new ActiveDataProvider([
115-
'db' => $this->getConnection(),
116109
'query' => $order->getBooks(),
117110
]);
118111
$items = $provider->getModels();

0 commit comments

Comments
 (0)