LocaleTranslationTest::$lock

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

A mocked lock to use when instantiating LocaleTranslation objects.

Type: \Drupal\Core\Lock\LockBackendInterface|\PHPUnit\Framework\MockObject\MockObject

File

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

Class

LocaleTranslationTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21locale%21src%21LocaleTranslation.php/class/LocaleTranslation/9" title="String translator using the locale module." class="local">\Drupal\locale\LocaleTranslation</a> @group locale

Namespace

Drupal\Tests\locale\Unit

Code

protected $lock;

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