Added one more test case for not found URLs on API tests

This commit is contained in:
Alejandro Celaya 2020-02-02 19:15:14 +01:00
parent 0c1ecd3caa
commit 8a0ba11f79

View File

@ -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