Skip to content

Commit 8272c86

Browse files
committed
Fix test
1 parent 84dca1f commit 8272c86

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/ActiveDataProviderTest.php

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

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

0 commit comments

Comments
 (0)