protected function NameMungingTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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 53
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';
}