LocaleTranslationTest::$cache

Same name in other branches
  1. 10 core/modules/locale/tests/src/Unit/LocaleTranslationTest.php \Drupal\Tests\locale\Unit\LocaleTranslationTest::cache
  2. 11.x core/modules/locale/tests/src/Unit/LocaleTranslationTest.php \Drupal\Tests\locale\Unit\LocaleTranslationTest::cache

A mocked cache to use when instantiating LocaleTranslation objects.

Type: \Drupal\Core\Cache\CacheBackendInterface|\PHPUnit\Framework\MockObject\MockObject

File

core/modules/locale/tests/src/Unit/LocaleTranslationTest.php, line 34

Class

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

Namespace

Drupal\Tests\locale\Unit

Code

protected $cache;

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