protected function LocaleTranslationTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/tests/src/Unit/LocaleTranslationTest.php \Drupal\Tests\locale\Unit\LocaleTranslationTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ locale/ tests/ src/ Unit/ LocaleTranslationTest.php, line 39
Class
- LocaleTranslationTest
- @coversDefaultClass \Drupal\locale\LocaleTranslation @group locale
Namespace
Drupal\Tests\locale\UnitCode
protected function setUp() : void {
$this->storage = $this
->createMock('Drupal\\locale\\StringStorageInterface');
$this->cache = $this
->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
$this->lock = $this
->createMock('Drupal\\Core\\Lock\\LockBackendInterface');
$this->languageManager = $this
->createMock('Drupal\\Core\\Language\\LanguageManagerInterface');
$this->requestStack = new RequestStack();
}