Extracted logic to determine QR code params to its own data object

This commit is contained in:
Alejandro Celaya
2021-07-13 13:45:46 +02:00
parent 5a2350bac1
commit d6e155d874
3 changed files with 122 additions and 64 deletions

View File

@@ -14,6 +14,7 @@ use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Psr\Log\NullLogger;
use Shlinkio\Shlink\Common\Response\QrCodeResponse;
use Shlinkio\Shlink\Core\Action\QrCodeAction;
use Shlinkio\Shlink\Core\Entity\ShortUrl;
@@ -41,6 +42,7 @@ class QrCodeActionTest extends TestCase
$this->action = new QrCodeAction(
$this->urlResolver->reveal(),
new ShortUrlStringifier(['domain' => 'doma.in']),
new NullLogger(),
);
}