You are here

protected function NameMungingTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/File/NameMungingTest.php \Drupal\system\Tests\File\NameMungingTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides FileTestBase::setUp

File

core/modules/system/src/Tests/File/NameMungingTest.php, line 32
Contains \Drupal\system\Tests\File\NameMungingTest.

Class

NameMungingTest
Tests filename munging and unmunging.

Namespace

Drupal\system\Tests\File

Code

protected function setUp() {
  parent::setUp();
  $this->badExtension = 'php';
  $this->name = $this
    ->randomMachineName() . '.' . $this->badExtension . '.txt';
  $this->nameWithUcExt = $this
    ->randomMachineName() . '.' . strtoupper($this->badExtension) . '.txt';
}