StringTranslationTraitTest::$translation

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php \Drupal\Tests\Core\StringTranslation\StringTranslationTraitTest::translation

The mock under test that uses StringTranslationTrait.

Type: object

See also

\PHPUnit\Framework\MockObject\Generator::getObjectForTrait()

File

core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php, line 30

Class

StringTranslationTraitTest
@coversDefaultClass \Drupal\Core\StringTranslation\StringTranslationTrait @group StringTranslation

Namespace

Drupal\Tests\Core\StringTranslation

Code

protected $translation;

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