You are here

protected function NameMungingTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/File/NameMungingTest.php \Drupal\KernelTests\Core\File\NameMungingTest::setUp()

Overrides FileTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/File/NameMungingTest.php, line 52

Class

NameMungingTest
Tests filename munging and unmunging.

Namespace

Drupal\KernelTests\Core\File

Code

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