You are here

protected function LocaleTranslationTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 44
Contains \Drupal\Tests\locale\Unit\LocaleTranslationTest.

Class

LocaleTranslationTest
@coversDefaultClass \Drupal\locale\LocaleTranslation @group locale

Namespace

Drupal\Tests\locale\Unit

Code

protected function setUp() {
  $this->storage = $this
    ->getMock('Drupal\\locale\\StringStorageInterface');
  $this->cache = $this
    ->getMock('Drupal\\Core\\Cache\\CacheBackendInterface');
  $this->lock = $this
    ->getMock('Drupal\\Core\\Lock\\LockBackendInterface');
  $this->languageManager = $this
    ->getMock('Drupal\\Core\\Language\\LanguageManagerInterface');
  $this->requestStack = new RequestStack();
}