@@ 401-409 (lines=9) @@ | ||
398 | * |
|
399 | * @dataProvider provideFindByHistoryAndSiteId |
|
400 | */ |
|
401 | public function testFindByHistoryAndSiteId($user, $siteId, array $eventTypes, $published, $limit, $sort, $count) |
|
402 | { |
|
403 | $user = $this->userRepository->findOneByUsername($user); |
|
404 | ||
405 | $this->assertCount( |
|
406 | $count, |
|
407 | $this->repository->findByHistoryAndSiteId($user->getId(), $siteId, $eventTypes, $published, $limit, $sort) |
|
408 | ); |
|
409 | } |
|
410 | ||
411 | /** |
|
412 | * @return array |
@@ 382-388 (lines=7) @@ | ||
379 | * |
|
380 | * @dataProvider provideFindByHistoryAndSiteId |
|
381 | */ |
|
382 | public function testFindByHistoryAndSiteId($user, $siteId, array $eventTypes, $published, $limit, $sort, $count) |
|
383 | { |
|
384 | $user = $this->userRepository->findOneByUsername($user); |
|
385 | ||
386 | $contents = $this->repository->findByHistoryAndSiteId($user->getId(), $siteId, $eventTypes, $published, $limit, $sort); |
|
387 | $this->assertCount($count, $contents); |
|
388 | } |
|
389 | ||
390 | /** |
|
391 | * @return array |