File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments