Drupal 8  8.0.2
NameMungingTest Class Reference
Inheritance diagram for NameMungingTest:

Public Member Functions

 testMunging ()
 
 testMungeNullByte ()
 
 testMungeIgnoreInsecure ()
 
 testMungeIgnoreWhitelisted ()
 
 testUnMunge ()
 
- Public Member Functions inherited from FileTestBase
 assertFilePermissions ($filepath, $expected_mode, $message=NULL)
 
 assertDirectoryPermissions ($directory, $expected_mode, $message=NULL)
 
 createDirectory ($path=NULL)
 
 createUri ($filepath=NULL, $contents=NULL, $scheme=NULL)
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from FileTestBase
 setUp ()
 

Protected Attributes

 $badExtension
 
 $name
 
 $nameWithUcExt
 
- Protected Attributes inherited from FileTestBase
 $scheme
 
 $classname
 

Additional Inherited Members

- Static Public Attributes inherited from FileTestBase
static $modules = array('system')
 

Detailed Description

Tests filename munging and unmunging.

File

Member Function Documentation

testMungeIgnoreInsecure ( )

If the system.file.allow_insecure_uploads setting evaluates to true, the file should come out untouched, no matter how evil the filename.

References Drupal\config(), file_munge_filename(), and format_string().

Here is the call graph for this function:

testMungeIgnoreWhitelisted ( )

White listed extensions are ignored by file_munge_filename().

References file_munge_filename(), and format_string().

Here is the call graph for this function:

testMungeNullByte ( )

Tests munging with a null byte in the filename.

References file_munge_filename().

Here is the call graph for this function:

testMunging ( )

Create a file and munge/unmunge the name.

References Drupal\config(), file_munge_filename(), and format_string().

Here is the call graph for this function:

testUnMunge ( )

Ensure that unmunge gets your name back.

References file_munge_filename(), file_unmunge_filename(), and format_string().

Here is the call graph for this function:


The documentation for this class was generated from the following file: