From 8afa582aa5ee869f041d6002bb58c57a94aeb6da Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 29 Jan 2023 11:32:13 +0100 Subject: [PATCH] Create ShortUrlModeTest --- .../test/ShortUrl/Model/ShortUrlModeTest.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 module/Core/test/ShortUrl/Model/ShortUrlModeTest.php diff --git a/module/Core/test/ShortUrl/Model/ShortUrlModeTest.php b/module/Core/test/ShortUrl/Model/ShortUrlModeTest.php new file mode 100644 index 00000000..18aa2d54 --- /dev/null +++ b/module/Core/test/ShortUrl/Model/ShortUrlModeTest.php @@ -0,0 +1,29 @@ + ['invalid', null]; + yield 'foo' => ['foo', null]; + yield 'loose' => ['loose', ShortUrlMode::LOOSE]; + yield 'loosely' => ['loosely', ShortUrlMode::LOOSE]; + yield 'strict' => ['strict', ShortUrlMode::STRICT]; + } +}