mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Test removing some bad characters when multibyte is allowed
This commit is contained in:
parent
8e4db95f72
commit
cf8e9f2427
@ -95,5 +95,11 @@ class URLSegmentFilterTest extends SapphireTest {
|
||||
$filter = new URLSegmentFilter();
|
||||
$this->assertEquals('url-has-trailing-dashes', $filter->filter('url-has-trailing-dashes--'));
|
||||
}
|
||||
|
||||
public function testRemovesBadCharactersWithMultibyteAllowed() {
|
||||
$filter = new URLSegmentFilter();
|
||||
$filter->setAllowMultibyte(true);
|
||||
$this->assertEquals('url-with-bad-characters', $filter->filter('url?-with/-bad#-characters='));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user