function FileNameMungingTest::setUp

Overrides DrupalWebTestCase::setUp

File

modules/simpletest/tests/file.test, line 2792

Class

FileNameMungingTest
Tests for file_munge_filename() and file_unmunge_filename().

Code

function setUp() {
    parent::setUp();
    $this->bad_extension = 'foo';
    $this->name = $this->randomName() . '.' . $this->bad_extension . '.txt';
    $this->name_with_uc_ext = $this->randomName() . '.' . strtoupper($this->bad_extension) . '.txt';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.