protected function SanitizeNameTest::setUp in Transliterate filenames for uploads 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ SanitizeNameTest.php, line 19
Class
- SanitizeNameTest
- @coversDefaultClass \Drupal\transliterate_filenames\SanitizeName @group transliterate_filenames
Namespace
Drupal\Tests\transliterate_filenames\UnitCode
protected function setUp() {
parent::setUp();
$container = new ContainerBuilder();
\Drupal::setContainer($container);
$container
->set('transliterate_filenames.sanitize_name', new SanitizeName(new PhpTransliteration()));
}