function LocaleBulkDeprecationTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
modules/ locale/ tests/ src/ Unit/ LocaleBulkDeprecationTest.php, line 17
Class
Namespace
Drupal\Tests\locale\UnitCode
protected function setUp() : void {
parent::setUp();
$container = new ContainerBuilder();
$container->set('locale.config_manager', $this->createMock('Drupal\\locale\\LocaleConfigManager'));
$language_manager = $this->createMock('Drupal\\Core\\Language\\LanguageManagerInterface');
$language_manager->expects($this->any())
->method('getDefaultLanguage')
->willReturn($this->createMock('Drupal\\Core\\Language\\LanguageInterface'));
$container->set('language_manager', $language_manager);
\Drupal::setContainer($container);
include_once DRUPAL_ROOT . '/core/modules/locale/locale.bulk.inc';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.