public function testPaginatedFindAll()
{
$this->clearDb();
for ($i = 0; $i < 100; ++$i) {
$user = new User('Login ' . $i);
$this->em->persist($user);
}
$this->em->flush();
/** @var User[] $users */
$users = $this->em->getRepository(User::class)->paginated(0, 10);
$this->assertCount(10, $users);
$users2 = $this->em->getRepository(User::class)->paginated(10, 90);
$this->assertCount(90, $users2);
}