Skip to content

Commit 34349ad

Browse files
committed
Fix
1 parent 75c99a4 commit 34349ad

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

tests/ActiveDataProviderTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -160,28 +160,4 @@ public function testTotalCountAfterSearch()
160160
$this->assertEquals(1, $pagination->getPageCount());
161161
$this->assertEquals(1, $provider->getTotalCount());
162162
}
163-
164-
public function testTotalCountAfterSetPagination()
165-
{
166-
$query = Customer::find();
167-
$provider = new ActiveDataProvider([
168-
'query' => $query,
169-
'pagination' => [
170-
'pageSizeLimit' => [1, 500000],
171-
],
172-
'sort' => [
173-
'defaultOrder' => [
174-
'id' => SORT_DESC,
175-
]
176-
],
177-
]);
178-
179-
$query->addOptions(['track_total_hits' => true]);
180-
181-
$pagination = $provider->getPagination();
182-
$this->assertEquals(0, $pagination->getPageCount());
183-
$this->assertCount(3, $provider->getModels());
184-
$this->assertEquals(1, $pagination->getPageCount());
185-
$this->assertEquals(3, $provider->getTotalCount());
186-
}
187163
}

0 commit comments

Comments
 (0)