From 8a0ba11f79ca493f0fea9ec6606b7c3a4d019c25 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 2 Feb 2020 19:15:14 +0100 Subject: [PATCH] Added one more test case for not found URLs on API tests --- module/Rest/test-api/Utils/NotFoundUrlHelpersTrait.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/Rest/test-api/Utils/NotFoundUrlHelpersTrait.php b/module/Rest/test-api/Utils/NotFoundUrlHelpersTrait.php index fab658f0..3cf2ad30 100644 --- a/module/Rest/test-api/Utils/NotFoundUrlHelpersTrait.php +++ b/module/Rest/test-api/Utils/NotFoundUrlHelpersTrait.php @@ -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