mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 17:44:44 +08:00
Created DB-level paginator for tags without stats
This commit is contained in:
@@ -47,11 +47,13 @@ class TagServiceTest extends TestCase
|
||||
$expected = [new Tag('foo'), new Tag('bar')];
|
||||
|
||||
$match = $this->repo->match(Argument::cetera())->willReturn($expected);
|
||||
$count = $this->repo->matchSingleScalarResult(Argument::cetera())->willReturn(0);
|
||||
|
||||
$result = $this->service->listTags(TagsParams::fromRawData([]));
|
||||
|
||||
self::assertEquals($expected, $result->getCurrentPageResults());
|
||||
$match->shouldHaveBeenCalled();
|
||||
$count->shouldHaveBeenCalled();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user