mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-28 09:51:40 -06:00
Added one more test case for not found URLs on API tests
This commit is contained in:
parent
0c1ecd3caa
commit
8a0ba11f79
@ -14,11 +14,16 @@ trait NotFoundUrlHelpersTrait
|
|||||||
public function provideInvalidUrls(): iterable
|
public function provideInvalidUrls(): iterable
|
||||||
{
|
{
|
||||||
yield 'invalid shortcode' => ['invalid', null, 'No URL found with short code "invalid"'];
|
yield 'invalid shortcode' => ['invalid', null, 'No URL found with short code "invalid"'];
|
||||||
yield 'invalid shortcode + domain' => [
|
yield 'invalid shortcode without domain' => [
|
||||||
'abc123',
|
'abc123',
|
||||||
'example.com',
|
'example.com',
|
||||||
'No URL found with short code "abc123" for domain "example.com"',
|
'No URL found with short code "abc123" for domain "example.com"',
|
||||||
];
|
];
|
||||||
|
yield 'invalid shortcode + domain' => [
|
||||||
|
'custom-with-domain',
|
||||||
|
'example.com',
|
||||||
|
'No URL found with short code "custom-with-domain" for domain "example.com"',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildShortUrlPath(string $shortCode, ?string $domain, string $suffix = ''): string
|
public function buildShortUrlPath(string $shortCode, ?string $domain, string $suffix = ''): string
|
||||||
|
Loading…
Reference in New Issue
Block a user