Added more tests covering invalid custom slugs

This commit is contained in:
Alejandro Celaya
2020-03-06 20:01:41 +01:00
parent 18ceafeb60
commit f5c1e12db4
4 changed files with 15 additions and 2 deletions

View File

@@ -47,6 +47,15 @@ class ShortUrlMetaTest extends TestCase
yield [[
ShortUrlMetaInputFilter::SHORT_CODE_LENGTH => 3,
]];
yield [[
ShortUrlMetaInputFilter::CUSTOM_SLUG => '/',
]];
yield [[
ShortUrlMetaInputFilter::CUSTOM_SLUG => '',
]];
yield [[
ShortUrlMetaInputFilter::CUSTOM_SLUG => ' ',
]];
}
/** @test */