You are here

public function StringTranslationTraitTest::testT in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php \Drupal\Tests\Core\StringTranslation\StringTranslationTraitTest::testT()

@covers ::t

File

core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php, line 49
Contains \Drupal\Tests\Core\StringTranslation\StringTranslationTraitTest.

Class

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

Namespace

Drupal\Tests\Core\StringTranslation

Code

public function testT() {
  $method = $this->reflection
    ->getMethod('t');
  $method
    ->setAccessible(TRUE);
  $this
    ->assertEquals('something', $method
    ->invoke($this->translation, 'something'));
}