function LocaleProjectStorageTest::setUp

Same name and namespace in other branches
  1. 10 core/modules/locale/tests/src/Unit/LocaleProjectStorageTest.php \Drupal\Tests\locale\Unit\LocaleProjectStorageTest::setUp()
  2. 11.x core/modules/locale/tests/src/Unit/LocaleProjectStorageTest.php \Drupal\Tests\locale\Unit\LocaleProjectStorageTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/locale/tests/src/Unit/LocaleProjectStorageTest.php, line 39

Class

LocaleProjectStorageTest
Tests Drupal\locale\LocaleProjectStorage.

Namespace

Drupal\Tests\locale\Unit

Code

protected function setUp() : void {
  parent::setUp();
  $this->keyValueMemoryFactory = new KeyValueMemoryFactory();
  $this->projectStorage = new LocaleProjectStorage($this->keyValueMemoryFactory);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.