Split short URL listing capabilities on its own repo and service

This commit is contained in:
Alejandro Celaya
2022-12-13 19:37:02 +01:00
parent d1ec15febf
commit 92a83b82a0
22 changed files with 654 additions and 536 deletions

View File

@@ -13,7 +13,7 @@ use PHPUnit\Framework\TestCase;
use Shlinkio\Shlink\Common\Paginator\Paginator;
use Shlinkio\Shlink\Core\ShortUrl\Helper\ShortUrlStringifier;
use Shlinkio\Shlink\Core\ShortUrl\Model\ShortUrlsParams;
use Shlinkio\Shlink\Core\ShortUrl\ShortUrlService;
use Shlinkio\Shlink\Core\ShortUrl\ShortUrlListServiceInterface;
use Shlinkio\Shlink\Core\ShortUrl\Transformer\ShortUrlDataTransformer;
use Shlinkio\Shlink\Rest\Action\ShortUrl\ListShortUrlsAction;
use Shlinkio\Shlink\Rest\Entity\ApiKey;
@@ -21,11 +21,11 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
class ListShortUrlsActionTest extends TestCase
{
private ListShortUrlsAction $action;
private MockObject & ShortUrlService $service;
private MockObject & ShortUrlListServiceInterface $service;
protected function setUp(): void
{
$this->service = $this->createMock(ShortUrlService::class);
$this->service = $this->createMock(ShortUrlListServiceInterface::class);
$this->action = new ListShortUrlsAction($this->service, new ShortUrlDataTransformer(
new ShortUrlStringifier([