Used league/uri to validate URLs including deeplinks, and fixed tests

This commit is contained in:
Alejandro Celaya
2020-06-27 11:09:56 +02:00
parent 08950f6433
commit 78b838f6b6
7 changed files with 13 additions and 17 deletions

View File

@@ -7,7 +7,6 @@ namespace ShlinkioTest\Shlink\Rest\Action\ShortUrl;
use Cake\Chronos\Chronos;
use Laminas\Diactoros\ServerRequest;
use Laminas\Diactoros\ServerRequestFactory;
use Laminas\Diactoros\Uri;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
@@ -50,7 +49,7 @@ class CreateShortUrlActionTest extends TestCase
{
$shortUrl = new ShortUrl('');
$shorten = $this->urlShortener->urlToShortCode(
Argument::type(Uri::class),
Argument::type('string'),
Argument::type('array'),
$expectedMeta,
)->willReturn($shortUrl);