@@ 418-424 (lines=7) @@ | ||
415 | * |
|
416 | * @dataProvider provideFindByHistoryAndSiteId |
|
417 | */ |
|
418 | public function testFindByHistoryAndSiteId($user, $siteId, array $eventTypes, $published, $limit, $sort, $count) |
|
419 | { |
|
420 | $user = $this->userRepository->findOneByUsername($user); |
|
421 | ||
422 | $contents = $this->repository->findByHistoryAndSiteId($user->getId(), $siteId, $eventTypes, $published, $limit, $sort); |
|
423 | $this->assertCount($count, $contents); |
|
424 | } |
|
425 | ||
426 | /** |
|
427 | * @return array |
@@ 399-407 (lines=9) @@ | ||
396 | * |
|
397 | * @dataProvider provideFindByHistoryAndSiteId |
|
398 | */ |
|
399 | public function testFindByHistoryAndSiteId($user, $siteId, array $eventTypes, $published, $limit, $sort, $count) |
|
400 | { |
|
401 | $user = $this->userRepository->findOneByUsername($user); |
|
402 | ||
403 | $this->assertCount( |
|
404 | $count, |
|
405 | $this->repository->findByHistoryAndSiteId($user->getId(), $siteId, $eventTypes, $published, $limit, $sort) |
|
406 | ); |
|
407 | } |
|
408 | ||
409 | /** |
|
410 | * @return array |