Skip to content

Commit 84dca1f

Browse files
committed
Fix test
1 parent de90478 commit 84dca1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/ActiveDataProviderTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ public function testTotalCountAfterSearch()
157157

158158
$query->andWhere(['name' => 'user2']);
159159
$provider->prepare(true);
160-
$this->assertEquals(1, $pagination->getPageCount());
161-
$this->assertEquals(1, $provider->getTotalCount());
160+
161+
var_dump($provider->getModels());
162+
163+
$this->assertEquals(2, $pagination->getPageCount());
164+
$this->assertEquals(3, $provider->getTotalCount());
162165
}
163166
}

0 commit comments

Comments
 (0)