SilverStripe\Assets\Tests\FileNameFilterTest
Synopsis
class FileNameFilterTest
extends SapphireTest
{
- // methods
- protected void setUp()
- public void testFilter()
- public void testFilterWithTransliterator()
- public void testFilterWithCustomRules()
- public void testFilterWithEmptyString()
- public void testUnderscoresStartOfNameRemoved()
- public void testDoubleUnderscoresStartOfNameRemoved()
- public void testDotsStartOfNameRemoved()
- public void testDoubleDotsStartOfNameRemoved()
- public void testMixedInvalidCharsStartOfNameRemoved()
- public void testWhitespaceRemoved()
- public void testUnderscoresKept()
- public void testNonAsciiCharsReplacedWithDashes()
- public void testDuplicateDashesRemoved()
- public void testDoesntAddExtensionWhenMissing()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Methods
protected
public
- testDoesntAddExtensionWhenMissing()
- testDotsStartOfNameRemoved()
- testDoubleDotsStartOfNameRemoved()
- testDoubleUnderscoresStartOfNameRemoved()
- testDuplicateDashesRemoved()
- testFilter()
- testFilterWithCustomRules()
- testFilterWithEmptyString()
- testFilterWithTransliterator()
- testMixedInvalidCharsStartOfNameRemoved()
- testNonAsciiCharsReplacedWithDashes()
- testUnderscoresKept()
- testUnderscoresStartOfNameRemoved()
- testWhitespaceRemoved()