@@ 400-408 (lines=9) @@ | ||
397 | * |
|
398 | * @dataProvider provideFindByHistoryAndSiteId |
|
399 | */ |
|
400 | public function testFindByHistoryAndSiteId($user, $siteId, array $eventTypes, $published, $limit, $sort, $count) |
|
401 | { |
|
402 | $user = $this->userRepository->findOneByUsername($user); |
|
403 | ||
404 | $this->assertCount( |
|
405 | $count, |
|
406 | $this->repository->findByHistoryAndSiteId($user->getId(), $siteId, $eventTypes, $published, $limit, $sort) |
|
407 | ); |
|
408 | } |
|
409 | ||
410 | /** |
|
411 | * @return array |
@@ 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 |