mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 07:43:12 +08:00
Updated VisitRepository::findUnlocatedVisits methods so that it paginates the amount of elements loaded in memory
This commit is contained in:
@@ -36,8 +36,8 @@ class VisitServiceTest extends TestCase
|
||||
public function locateVisitsIteratesAndLocatesUnlocatedVisits(): void
|
||||
{
|
||||
$unlocatedVisits = [
|
||||
[new Visit(new ShortUrl('foo'), Visitor::emptyInstance())],
|
||||
[new Visit(new ShortUrl('bar'), Visitor::emptyInstance())],
|
||||
new Visit(new ShortUrl('foo'), Visitor::emptyInstance()),
|
||||
new Visit(new ShortUrl('bar'), Visitor::emptyInstance()),
|
||||
];
|
||||
|
||||
$repo = $this->prophesize(VisitRepository::class);
|
||||
@@ -71,7 +71,7 @@ class VisitServiceTest extends TestCase
|
||||
public function visitsWhichCannotBeLocatedAreIgnored()
|
||||
{
|
||||
$unlocatedVisits = [
|
||||
[new Visit(new ShortUrl('foo'), Visitor::emptyInstance())],
|
||||
new Visit(new ShortUrl('foo'), Visitor::emptyInstance()),
|
||||
];
|
||||
|
||||
$repo = $this->prophesize(VisitRepository::class);
|
||||
|
||||
Reference in New Issue
Block a user