function FileNameMungingTest::testUnMunge in SimpleTest 7
Ensure that unmunge gets your name back.
File
- tests/
file.test, line 2027 - This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.
Class
- FileNameMungingTest
- Tests for file_munge_filename() and file_unmunge_filename().
Code
function testUnMunge() {
$munged_name = file_munge_filename($this->name, '', FALSE);
$unmunged_name = file_unmunge_filename($munged_name);
// @TODO uncomment when this tests passes reliably, see
// http://drupal.org/node/368502
// $this->assertIdentical($unmunged_name, $this->name, t('The unmunged (%unmunged) filename matches the original (%original)', array('%unmunged' => $unmunged_name, '%original' => $this->name)));
}