mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Used league/uri to validate URLs including deeplinks, and fixed tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user