mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-27 01:11:39 -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
|
||||
{
|
||||
yield 'invalid shortcode' => ['invalid', null, 'No URL found with short code "invalid"'];
|
||||
yield 'invalid shortcode + domain' => [
|
||||
yield 'invalid shortcode without domain' => [
|
||||
'abc123',
|
||||
'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
|
||||
|
Loading…
Reference in New Issue
Block a user