function NameMungingTest::setUp
Same name in other branches
- 8.9.x 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 56
Class
- NameMungingTest
- Tests filename munging and unmunging.
Namespace
Drupal\KernelTests\Core\FileCode
protected function setUp() : void {
parent::setUp();
$this->badExtension = 'foo';
$this->name = $this->randomMachineName() . '.' . $this->badExtension . '.txt';
$this->nameWithUcExt = $this->randomMachineName() . '.' . strtoupper($this->badExtension) . '.txt';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.